mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 17:27:52 -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
|
@ -2132,7 +2132,7 @@ Plater::priv::priv(Plater *q, MainFrame *main_frame)
|
|||
|
||||
#if ENABLE_DRAG_AND_DROP_FIX
|
||||
this->q->Bind(EVT_LOAD_MODEL_OTHER_INSTANCE, [this](LoadFromOtherInstanceEvent& evt) {
|
||||
BOOST_LOG_TRIVIAL(debug) << "received load from other instance event ";
|
||||
BOOST_LOG_TRIVIAL(error) << "received load from other instance event (1)";
|
||||
wxArrayString input_files;
|
||||
for (size_t i = 0; i < evt.data.size(); ++i) {
|
||||
input_files.push_back(from_u8(evt.data[i].string()));
|
||||
|
@ -2142,7 +2142,7 @@ Plater::priv::priv(Plater *q, MainFrame *main_frame)
|
|||
});
|
||||
#else
|
||||
this->q->Bind(EVT_LOAD_MODEL_OTHER_INSTANCE, [this](LoadFromOtherInstanceEvent &evt) {
|
||||
BOOST_LOG_TRIVIAL(debug) << "received load from other instance event ";
|
||||
BOOST_LOG_TRIVIAL(error) << "received load from other instance event (2)";
|
||||
this->load_files(evt.data, true, true);
|
||||
});
|
||||
#endif // ENABLE_DRAG_AND_DROP_FIX
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue