switching from slicer to gcode viewer - unlocking lock file

This commit is contained in:
David Kocik 2020-10-14 08:46:30 +02:00
parent d33e97abb3
commit 453408143f
4 changed files with 24 additions and 1 deletions

View file

@ -578,7 +578,7 @@ int CLI::run(int argc, char **argv)
GUI::GUI_App *gui = new GUI::GUI_App();
#endif // ENABLE_GCODE_VIEWER
if(!start_as_gcodeviewer) { // gcode viewer is currently not performing instance check
if(gui->get_app_mode() != GUI::GUI_App::EAppMode::GCodeViewer){ // gcode viewer is currently not performing instance check
bool gui_single_instance_setting = gui->app_config->get("single_instance") == "1";
if (Slic3r::instance_check(argc, argv, gui_single_instance_setting)) {
//TODO: do we have delete gui and other stuff?