mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
Fixed compilation of Win32 message boxes on unix systems.
This commit is contained in:
@@ -71,7 +71,7 @@ int CLI::run(int argc, char **argv)
|
|||||||
"You may need to reconfigure the missing locales, likely by running the \"locale-gen\"" and \"dpkg-reconfigure locales\" commands.\n"
|
"You may need to reconfigure the missing locales, likely by running the \"locale-gen\"" and \"dpkg-reconfigure locales\" commands.\n"
|
||||||
#endif
|
#endif
|
||||||
SLIC3R_APP_NAME " will now terminate.\n\n") + ex.what();
|
SLIC3R_APP_NAME " will now terminate.\n\n") + ex.what();
|
||||||
#ifdef SLIC3R_GUI
|
#if defined(_WIN32) && defined(SLIC3R_GUI)
|
||||||
if (m_actions.empty())
|
if (m_actions.empty())
|
||||||
// Empty actions means Slicer is executed in the GUI mode. Show a GUI message.
|
// Empty actions means Slicer is executed in the GUI mode. Show a GUI message.
|
||||||
MessageBoxA(NULL, text.c_str(), caption.c_str(), MB_OK | MB_ICONERROR);
|
MessageBoxA(NULL, text.c_str(), caption.c_str(), MB_OK | MB_ICONERROR);
|
||||||
|
|||||||
Reference in New Issue
Block a user