mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-05 20:16:05 +08:00
stub out _on_select_preset and prompt_unsaved_changes()
This commit is contained in:
parent
ef22974593
commit
fd1a204538
@ -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) {
|
void PresetChooser::_on_change_combobox(preset_t preset, wxBitmapComboBox* choice) {
|
||||||
|
|
||||||
// Prompt for unsaved changes and undo selections if cancelled and return early
|
// Prompt for unsaved changes and undo selections if cancelled and return early
|
||||||
|
@ -48,6 +48,8 @@ private:
|
|||||||
/// Reference to owning Plater's print
|
/// Reference to owning Plater's print
|
||||||
Print& _print;
|
Print& _print;
|
||||||
|
|
||||||
|
void _on_select_preset(preset_t preset);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}} // Slic3r::GUI
|
}} // Slic3r::GUI
|
||||||
|
Loading…
x
Reference in New Issue
Block a user