Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2022-06-08 19:00:29 +0300
committerYuSanka <yusanka@gmail.com>2022-06-27 12:10:33 +0300
commitd81009c6ce1c823570d511905455e5a0e6416638 (patch)
tree7d9bdfd7d214c22c9e5afb88f01aff658c2bab84
parent27a18065b3c7af5d78fad8890d591f83d1a22194 (diff)
Follow-up https://github.com/prusa3d/PrusaSlicer/commit/56466abe99121d0bb40eaa9bb578593a6e3254a5# - Fixed a Search in the Preferences options
+ Preferences dialog: Deleted unused variable 'reverted'
-rw-r--r--src/slic3r/GUI/Preferences.cpp1
-rw-r--r--src/slic3r/GUI/Search.cpp3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/slic3r/GUI/Preferences.cpp b/src/slic3r/GUI/Preferences.cpp
index d301f0d9a..27cd113fb 100644
--- a/src/slic3r/GUI/Preferences.cpp
+++ b/src/slic3r/GUI/Preferences.cpp
@@ -697,7 +697,6 @@ void PreferencesDialog::revert(wxEvent&)
for (auto value : m_values) {
- bool reverted = false;
const std::string& key = value.first;
if (key == "default_action_on_dirty_project") {
diff --git a/src/slic3r/GUI/Search.cpp b/src/slic3r/GUI/Search.cpp
index d8c4622ec..6b5edc30e 100644
--- a/src/slic3r/GUI/Search.cpp
+++ b/src/slic3r/GUI/Search.cpp
@@ -311,6 +311,9 @@ void OptionsSearcher::check_and_update(PrinterTechnology pt_in, ConfigOptionMode
for (auto i : input_values)
append_options(i.config, i.type);
+
+ options.insert(options.end(), preferences_options.begin(), preferences_options.end());
+
sort_options();
search(search_line, true);