ENH: open new process on MacOS

Change-Id: I0bc4069f9ff14ac86d9edf800134f04a26a650f2
This commit is contained in:
chunmao.guo 2022-09-02 19:02:45 +08:00 committed by Lane.Wei
parent 77e4599c4a
commit 0471c7d427
5 changed files with 33 additions and 26 deletions

View file

@ -4483,6 +4483,12 @@ void GUI_App::OSXStoreOpenFiles(const wxArrayString &fileNames)
// wxWidgets override to get an event on open files.
void GUI_App::MacOpenFiles(const wxArrayString &fileNames)
{
if (m_post_initialized) {
std::vector<wxString> names;
for (auto & n : fileNames) names.push_back(n);
start_new_slicer(names);
return;
}
std::vector<std::string> files;
std::vector<wxString> gcode_files;
std::vector<wxString> non_gcode_files;