mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-05 18:30:39 +08:00
debug input files
This commit is contained in:
parent
c147d1769c
commit
67def89334
@ -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)) {
|
||||
|
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user