From d81009c6ce1c823570d511905455e5a0e6416638 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Wed, 8 Jun 2022 18:00:29 +0200 Subject: [PATCH] Follow-up https://github.com/prusa3d/PrusaSlicer/commit/56466abe99121d0bb40eaa9bb578593a6e3254a5# - Fixed a Search in the Preferences options + Preferences dialog: Deleted unused variable 'reverted' --- src/slic3r/GUI/Preferences.cpp | 1 - src/slic3r/GUI/Search.cpp | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) 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);