mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-09-26 07:23:22 +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;
|
start_as_gcodeviewer = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
for (const std::string& file : m_input_files)
|
for (const std::string& file : m_input_files) {
|
||||||
if (boost::starts_with(file, "open?file=")) {
|
//if (boost::starts_with(file, "open?file=")) {
|
||||||
start_as_downloader = true;
|
start_as_downloader = true;
|
||||||
break;
|
break;
|
||||||
}
|
//}
|
||||||
|
}
|
||||||
if (!start_as_gcodeviewer && !start_as_downloader) {
|
if (!start_as_gcodeviewer && !start_as_downloader) {
|
||||||
for (const std::string& file : m_input_files) {
|
for (const std::string& file : m_input_files) {
|
||||||
if (!boost::filesystem::exists(file)) {
|
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()));
|
this->plater()->load_gcode(wxString::FromUTF8(this->init_params->input_files[0].c_str()));
|
||||||
}
|
}
|
||||||
if (this->init_params->start_as_downloader) {
|
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 {
|
else {
|
||||||
if (! this->init_params->preset_substitutions.empty())
|
if (! this->init_params->preset_substitutions.empty())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user