FIX: Open provided file at startup (#11419)
This commit is contained in:
@@ -5105,14 +5105,19 @@ Plater::priv::priv(Plater *q, MainFrame *main_frame)
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
if (originfile != "<lock>") // see bbs_3mf.cpp for lock detail
|
||||
boost::filesystem::remove_all(last);
|
||||
}
|
||||
|
||||
catch (...) {}
|
||||
int skip_confirm = e.GetInt();
|
||||
this->q->new_project(skip_confirm, true);
|
||||
});
|
||||
|
||||
if (this->q->get_project_filename().IsEmpty() && this->q->is_empty_project()) {
|
||||
int skip_confirm = e.GetInt();
|
||||
this->q->new_project(skip_confirm, true);
|
||||
}
|
||||
});
|
||||
//wxPostEvent(this->q, wxCommandEvent{EVT_RESTORE_PROJECT});
|
||||
}
|
||||
|
||||
@@ -15078,6 +15083,9 @@ void Plater::export_toolpaths_to_obj() const
|
||||
p->preview->get_canvas3d()->export_toolpaths_to_obj(into_u8(path).c_str());
|
||||
}
|
||||
|
||||
bool Plater::is_empty_project() {
|
||||
return model().objects.empty();
|
||||
}
|
||||
bool Plater::is_multi_extruder_ams_empty()
|
||||
{
|
||||
std::vector<std::string> extruder_ams_count_str = p->config->option<ConfigOptionStrings>("extruder_ams_count", true)->values;
|
||||
|
||||
Reference in New Issue
Block a user