Add an option to allow user disable printer configuration (#4930)

Add an option to allow user diable printer configuration
This commit is contained in:
SoftFever 2024-04-09 18:06:54 +08:00 committed by GitHub
parent 1e20121b09
commit 2122fcfc16
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 1 deletions

View file

@ -4757,7 +4757,7 @@ bool Tab::select_preset(std::string preset_name, bool delete_current /*=false*/,
apply_config_from_cache();
// Orca: update presets for the selected printer
if (m_type == Preset::TYPE_PRINTER) {
if (m_type == Preset::TYPE_PRINTER && wxGetApp().app_config->get_bool("remember_printer_config")) {
m_preset_bundle->update_selections(*wxGetApp().app_config);
wxGetApp().plater()->sidebar().on_filaments_change(m_preset_bundle->filament_presets.size());
}