FIX: [STUDIO-3478] take Cancel as No when saving new project

Change-Id: I6d4b1844861c4460d09ef793183bca6694845579
This commit is contained in:
chunmao.guo 2023-06-28 19:36:15 +08:00 committed by Lane.Wei
parent 29b61a1da0
commit d087b6c94a

View file

@ -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"); wxGetApp().app_config->set("save_project_choise", result == wxID_YES ? "yes" : "no");
if (result == wxID_YES) { if (result == wxID_YES) {
result = save_project(); result = save_project();
if (result == wxID_CANCEL) if (result == wxID_CANCEL) {
return result; if (choise.empty())
return result;
else
result = wxID_NO;
}
} }
} }