call detect_platform() after SLIC3R_LOGLEVEL env variable is read

This commit is contained in:
Vojtech Bubnik 2021-03-15 17:00:49 +01:00
parent 01406fd521
commit b9c4d29fe9

View File

@ -69,8 +69,6 @@ int CLI::run(int argc, char **argv)
{
// Mark the main thread for the debugger and for runtime checks.
set_current_thread_name("slic3r_main");
// Detect the operating system flavor.
detect_platform();
#ifdef __WXGTK__
// On Linux, wxGTK has no support for Wayland, and the app crashes on
@ -606,6 +604,9 @@ bool CLI::setup(int argc, char **argv)
}
}
// Detect the operating system flavor after SLIC3R_LOGLEVEL is set.
detect_platform();
#ifdef WIN32
// Notify user if blacklisted library is already loaded (Nahimic)
// If there are cases of no reports with blacklisted lib - this check should be performed later.