Follow-up 56466abe99# - Fixed a Search in the Preferences options

+ Preferences dialog: Deleted unused variable 'reverted'
This commit is contained in:
YuSanka 2022-06-08 18:00:29 +02:00
parent 27a18065b3
commit d81009c6ce
2 changed files with 3 additions and 1 deletions

View File

@ -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") {

View File

@ -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);