diff --git a/src/GUI/Plater/PresetChooser.cpp b/src/GUI/Plater/PresetChooser.cpp index 872a8d0bb..304148480 100644 --- a/src/GUI/Plater/PresetChooser.cpp +++ b/src/GUI/Plater/PresetChooser.cpp @@ -74,6 +74,16 @@ void PresetChooser::load(std::array presets) { } } +void PresetChooser::_on_select_preset(preset_t preset) { + if (preset == preset_t::Printer) { + this->load(); // reload print/filament settings to honor compatible printers + } +} + +bool PresetChooser::prompt_unsaved_changes() { + return true; +} + void PresetChooser::_on_change_combobox(preset_t preset, wxBitmapComboBox* choice) { // Prompt for unsaved changes and undo selections if cancelled and return early diff --git a/src/GUI/Plater/PresetChooser.hpp b/src/GUI/Plater/PresetChooser.hpp index 13923cb9e..8857fbc17 100644 --- a/src/GUI/Plater/PresetChooser.hpp +++ b/src/GUI/Plater/PresetChooser.hpp @@ -48,6 +48,8 @@ private: /// Reference to owning Plater's print Print& _print; + void _on_select_preset(preset_t preset); + }; }} // Slic3r::GUI