mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 18:58:00 -06:00
instance check: do not perform for gcode viewer
This commit is contained in:
parent
4d3190f988
commit
785839685e
1 changed files with 7 additions and 6 deletions
|
@ -580,12 +580,13 @@ int CLI::run(int argc, char **argv)
|
||||||
GUI::GUI_App *gui = new GUI::GUI_App();
|
GUI::GUI_App *gui = new GUI::GUI_App();
|
||||||
#endif // ENABLE_GCODE_VIEWER
|
#endif // ENABLE_GCODE_VIEWER
|
||||||
|
|
||||||
bool gui_single_instance_setting = gui->app_config->get("single_instance") == "1";
|
if(!start_as_gcodeviewer) { // gcode viewer is currently not performing instance check
|
||||||
if (Slic3r::instance_check(argc, argv, gui_single_instance_setting)) {
|
bool gui_single_instance_setting = gui->app_config->get("single_instance") == "1";
|
||||||
//TODO: do we have delete gui and other stuff?
|
if (Slic3r::instance_check(argc, argv, gui_single_instance_setting)) {
|
||||||
return -1;
|
//TODO: do we have delete gui and other stuff?
|
||||||
}
|
return -1;
|
||||||
|
}
|
||||||
|
}
|
||||||
// gui->autosave = m_config.opt_string("autosave");
|
// gui->autosave = m_config.opt_string("autosave");
|
||||||
GUI::GUI_App::SetInstance(gui);
|
GUI::GUI_App::SetInstance(gui);
|
||||||
#if ENABLE_GCODE_VIEWER
|
#if ENABLE_GCODE_VIEWER
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue