FIX: STUDIO-471

new or open project file is not allowed during the slicing process

Change-Id: I2c42cd2e65d51e35c42e5079efe15b44eaf071aa
This commit is contained in:
zhimin.zeng 2022-08-03 14:47:59 +08:00 committed by Lane.Wei
parent bfe46a67d5
commit e8787a4c12
1 changed files with 5 additions and 0 deletions

View File

@ -3038,6 +3038,11 @@ void GUI_App::request_project_download(std::string project_id)
void GUI_App::request_open_project(std::string project_id) void GUI_App::request_open_project(std::string project_id)
{ {
if (plater()->is_background_process_slicing()) {
Slic3r::GUI::show_info(nullptr, _L("new or open project file is not allowed during the slicing process!"), _L("Open Project"));
return;
}
if (project_id == "<new>") if (project_id == "<new>")
plater()->new_project(); plater()->new_project();
else if (project_id.empty()) else if (project_id.empty())