mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
call correct load_files at MacOpenFiles
This commit is contained in:
parent
ca09bf0805
commit
a650801b80
2 changed files with 12 additions and 3 deletions
|
@ -1771,8 +1771,17 @@ void GUI_App::MacOpenFiles(const wxArrayString &fileNames)
|
|||
if (!non_gcode_files.empty())
|
||||
start_new_slicer(non_gcode_files, true);
|
||||
} else {
|
||||
if (! files.empty())
|
||||
if (! files.empty()) {
|
||||
#if ENABLE_DRAG_AND_DROP_FIX
|
||||
wxArrayString input_files;
|
||||
for (size_t i = 0; i < non_gcode_files.size(); ++i) {
|
||||
input_files.push_back(non_gcode_files[i]);
|
||||
}
|
||||
this->plater()->load_files(input_files);
|
||||
#else
|
||||
this->plater()->load_files(files, true, true);
|
||||
#endif
|
||||
}
|
||||
for (const wxString &filename : gcode_files)
|
||||
start_new_gcodeviewer(&filename);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue