mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-24 14:30:54 -05:00
fix: warn on preset save when plugin not found (#16929)
* fix: warn on preset save when plugin not found * refactor: build the unsaved-changes save config in one place * Fixes clang-tidy --------- Co-authored-by: Lam Wei Lun <weilun.lam@gmail.com>
This commit is contained in:
1 parent
3322f6101c
commit
3a0517831f
15 files changed
+411
-66
No files matched your search
@@ -835,7 +835,10 @@ void PhysicalPrinterDialog::check_host_key_valid()
|
||||
|
||||
void PhysicalPrinterDialog::OnOK(wxEvent& event)
|
||||
{
|
||||
wxGetApp().get_tab(Preset::TYPE_PRINTER)->save_preset("", false, false, true, m_preset_name);
|
||||
// Keep this dialog open when the save was cancelled (e.g. the unresolved-plugin warning), or it
|
||||
// would close as if the physical printer's preset had been saved.
|
||||
if (!wxGetApp().get_tab(Preset::TYPE_PRINTER)->save_preset("", false, false, true, m_preset_name))
|
||||
return;
|
||||
event.Skip();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user