OSX specific: Fixing opening of G-codes by drag & dropping of G-code
on slicer icon in case slicer is not yet running.
This commit is contained in:
parent
dba1179708
commit
91a5ceb1dd
1 changed files with 1 additions and 1 deletions
|
@ -738,7 +738,7 @@ void GUI_App::post_init()
|
||||||
if (! this->initialized())
|
if (! this->initialized())
|
||||||
throw Slic3r::RuntimeError("Calling post_init() while not yet 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())
|
if (! this->init_params->input_files.empty())
|
||||||
this->plater()->load_gcode(wxString::FromUTF8(this->init_params->input_files[0].c_str()));
|
this->plater()->load_gcode(wxString::FromUTF8(this->init_params->input_files[0].c_str()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue