From 419014133a5f4421386237115867b0e5c392297b Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Tue, 14 Jun 2022 10:02:40 +0200 Subject: [PATCH] OSX specific: Fixing opening of G-codes by drag & dropping of G-code on slicer icon in case slicer is not yet running. (backport of 91a5ceb from master) --- src/slic3r/GUI/GUI_App.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index dedfbdc729..dc2541f6d6 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -722,7 +722,7 @@ void GUI_App::post_init() if (! this->initialized()) throw Slic3r::RuntimeError("Calling post_init() while not yet initialized"); - if (this->init_params->start_as_gcodeviewer) { + if (this->is_gcode_viewer()) { if (! this->init_params->input_files.empty()) this->plater()->load_gcode(wxString::FromUTF8(this->init_params->input_files[0].c_str())); }