mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
FIX: [STUDIO-3478] take Cancel as No when saving new project
Change-Id: I6d4b1844861c4460d09ef793183bca6694845579
This commit is contained in:
@@ -9448,8 +9448,12 @@ int GUI::Plater::close_with_confirm(std::function<bool(bool)> second_check)
|
||||
wxGetApp().app_config->set("save_project_choise", result == wxID_YES ? "yes" : "no");
|
||||
if (result == wxID_YES) {
|
||||
result = save_project();
|
||||
if (result == wxID_CANCEL)
|
||||
return result;
|
||||
if (result == wxID_CANCEL) {
|
||||
if (choise.empty())
|
||||
return result;
|
||||
else
|
||||
result = wxID_NO;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user