MacOS build fixes
This commit is contained in:
parent
1f362afb24
commit
6853f8a3c6
2 changed files with 2 additions and 2 deletions
|
@ -491,7 +491,7 @@ void desktop_open_folder(const boost::filesystem::path& path)
|
|||
const wchar_t* argv[] = { L"explorer", widepath.GetData(), nullptr };
|
||||
::wxExecute(const_cast<wchar_t**>(argv), wxEXEC_ASYNC, nullptr);
|
||||
#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);
|
||||
#else
|
||||
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());
|
||||
});
|
||||
|
||||
Bind(EVT_SLIC3R_APP_OPEN_FAILED, [this](const wxCommandEvent& evt) {
|
||||
Bind(EVT_SLIC3R_APP_OPEN_FAILED, [](const wxCommandEvent& evt) {
|
||||
show_error(nullptr, evt.GetString());
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue