mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 03:39:09 +08:00
MacOS build fixes
This commit is contained in:
parent
1f362afb24
commit
6853f8a3c6
@ -491,7 +491,7 @@ void desktop_open_folder(const boost::filesystem::path& path)
|
|||||||
const wchar_t* argv[] = { L"explorer", widepath.GetData(), nullptr };
|
const wchar_t* argv[] = { L"explorer", widepath.GetData(), nullptr };
|
||||||
::wxExecute(const_cast<wchar_t**>(argv), wxEXEC_ASYNC, nullptr);
|
::wxExecute(const_cast<wchar_t**>(argv), wxEXEC_ASYNC, nullptr);
|
||||||
#elif __APPLE__
|
#elif __APPLE__
|
||||||
const char* argv[] = { "open", path.string(), nullptr };
|
const char* argv[] = { "open", path.string().c_str(), nullptr };
|
||||||
::wxExecute(const_cast<char**>(argv), wxEXEC_ASYNC, nullptr);
|
::wxExecute(const_cast<char**>(argv), wxEXEC_ASYNC, nullptr);
|
||||||
#else
|
#else
|
||||||
const char* argv[] = { "xdg-open", path.string().c_str(), nullptr };
|
const char* argv[] = { "xdg-open", path.string().c_str(), nullptr };
|
||||||
|
@ -1239,7 +1239,7 @@ bool GUI_App::on_init_inner()
|
|||||||
show_error(nullptr, evt.GetString());
|
show_error(nullptr, evt.GetString());
|
||||||
});
|
});
|
||||||
|
|
||||||
Bind(EVT_SLIC3R_APP_OPEN_FAILED, [this](const wxCommandEvent& evt) {
|
Bind(EVT_SLIC3R_APP_OPEN_FAILED, [](const wxCommandEvent& evt) {
|
||||||
show_error(nullptr, evt.GetString());
|
show_error(nullptr, evt.GetString());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user