mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-09 03:12:26 +00:00
Do not close application when user select 'Cancel' in the save dirty project dialog
This commit is contained in:
1 parent
1c35dfe591
commit
5bbc68df7b
1 file changed
+4
-2
@@ -213,8 +213,10 @@ DPIFrame(NULL, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_S
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_plater != nullptr)
|
if (m_plater != nullptr && !m_plater->save_project_if_dirty()) {
|
||||||
m_plater->save_project_if_dirty();
|
event.Veto();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (event.CanVeto() && !wxGetApp().check_and_save_current_preset_changes()) {
|
if (event.CanVeto() && !wxGetApp().check_and_save_current_preset_changes()) {
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in new issue
Block a user