Skip to content

Commit

Permalink
Search: Fix of the wrong search, when print technology was changed, b…
Browse files Browse the repository at this point in the history
…ut search line wasn't inputted.

Partially reverted a248490 -> UnsavedChangesDialog:A sort of Sercher's options have to be reverted back an the and of update_tree()
May be related to #8376 - SEARCH {CTRL-F}
  • Loading branch information
YuSanka authored and lukasmatena committed Jul 13, 2022
1 parent 2225582 commit bd077ae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/slic3r/GUI/UnsavedChangesDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1300,6 +1300,9 @@ void UnsavedChangesDialog::update_tree(Preset::Type type, PresetCollection* pres
get_string_value(opt_key, old_config), get_string_value(opt_key, new_config), category_icon_map.at(option.category));
}
}

// Revert sort of searcher back
searcher.sort_options_by_label();
}

void UnsavedChangesDialog::on_dpi_changed(const wxRect& suggested_rect)
Expand Down Expand Up @@ -1709,6 +1712,9 @@ void DiffPresetDialog::update_tree()
Fit();
Refresh();
}

// Revert sort of searcher back
searcher.sort_options_by_label();
}

void DiffPresetDialog::on_dpi_changed(const wxRect&)
Expand Down

0 comments on commit bd077ae

Please sign in to comment.