Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorenricoturri1966 <enricoturri@seznam.cz>2020-10-16 15:08:24 +0300
committerenricoturri1966 <enricoturri@seznam.cz>2020-10-16 15:08:24 +0300
commitccd8e3644ecd25c379c1a8841e927d21d598cab7 (patch)
treeb176999ad52e7227d7cef5c8dd6e33ef7d3456f3 /src/PrusaSlicer.cpp
parent0f85777a799f36185c727b24dd7930a2a73c941f (diff)
Fixed build when tech ENABLE_GCODE_VIEWER is disabled
Diffstat (limited to 'src/PrusaSlicer.cpp')
-rw-r--r--src/PrusaSlicer.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/PrusaSlicer.cpp b/src/PrusaSlicer.cpp
index 0663eddbb..be66d5c54 100644
--- a/src/PrusaSlicer.cpp
+++ b/src/PrusaSlicer.cpp
@@ -577,17 +577,17 @@ int CLI::run(int argc, char **argv)
// #ifdef USE_WX
#if ENABLE_GCODE_VIEWER
GUI::GUI_App* gui = new GUI::GUI_App(start_as_gcodeviewer ? GUI::GUI_App::EAppMode::GCodeViewer : GUI::GUI_App::EAppMode::Editor);
+ 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?
+ return -1;
+ }
+ }
#else
GUI::GUI_App *gui = new GUI::GUI_App();
#endif // ENABLE_GCODE_VIEWER
- 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?
- return -1;
- }
- }
// gui->autosave = m_config.opt_string("autosave");
GUI::GUI_App::SetInstance(gui);
#if ENABLE_GCODE_VIEWER