stub out _on_select_preset and prompt_unsaved_changes()

This commit is contained in:
Joseph Lenox 2018-11-18 00:43:17 -06:00 committed by Joseph Lenox
parent ef22974593
commit fd1a204538
2 changed files with 12 additions and 0 deletions

View File

@ -74,6 +74,16 @@ void PresetChooser::load(std::array<Presets, preset_types> 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

View File

@ -48,6 +48,8 @@ private:
/// Reference to owning Plater's print
Print& _print;
void _on_select_preset(preset_t preset);
};
}} // Slic3r::GUI