diff --git a/src/PrusaSlicer.cpp b/src/PrusaSlicer.cpp index 5e46060fc8..6b1984b893 100644 --- a/src/PrusaSlicer.cpp +++ b/src/PrusaSlicer.cpp @@ -177,11 +177,12 @@ int CLI::run(int argc, char **argv) start_as_gcodeviewer = true; break; } - for (const std::string& file : m_input_files) - if (boost::starts_with(file, "open?file=")) { + for (const std::string& file : m_input_files) { + //if (boost::starts_with(file, "open?file=")) { start_as_downloader = true; break; - } + //} + } if (!start_as_gcodeviewer && !start_as_downloader) { for (const std::string& file : m_input_files) { if (!boost::filesystem::exists(file)) { diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index efa4aa6752..3b3664e919 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -742,7 +742,12 @@ void GUI_App::post_init() this->plater()->load_gcode(wxString::FromUTF8(this->init_params->input_files[0].c_str())); } if (this->init_params->start_as_downloader) { - show_error(nullptr, "Got url msg."); + std::string msg; + for (int i = 0; i < this->init_params->input_files.size(); ++i) + { + msg += this->init_params->input_files[i]; + } + show_error(nullptr, "Got url msg." + msg); } else { if (! this->init_params->preset_substitutions.empty())