Check unsaved preset changes only if project is dirty and it wasn't saved
This commit is contained in:
parent
d214e09400
commit
577632d892
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue