MacOS build fixes

This commit is contained in:
David Kocik 2022-02-18 16:47:24 +01:00
parent 1f362afb24
commit 6853f8a3c6
2 changed files with 2 additions and 2 deletions

View file

@ -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 };

View file

@ -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());
});
}