mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-13 03:21:49 +08:00
Check unsaved preset changes only if project is dirty and it wasn't saved
This commit is contained in:
parent
d214e09400
commit
577632d892
@ -228,7 +228,7 @@ DPIFrame(NULL, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_S
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// check unsaved changes only if project wasn't saved
|
// check unsaved changes only if project wasn't saved
|
||||||
else if (saved_project == wxID_NO && event.CanVeto() &&
|
else if (plater()->is_project_dirty() && saved_project == wxID_NO && event.CanVeto() &&
|
||||||
!wxGetApp().check_and_save_current_preset_changes(_L("PrusaSlicer is closing"), _L("Closing PrusaSlicer while some presets are modified."))) {
|
!wxGetApp().check_and_save_current_preset_changes(_L("PrusaSlicer is closing"), _L("Closing PrusaSlicer while some presets are modified."))) {
|
||||||
event.Veto();
|
event.Veto();
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user