From b9c4d29fe9beb023b4e2a491b28fa67cd239c813 Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Mon, 15 Mar 2021 17:00:49 +0100 Subject: [PATCH] call detect_platform() after SLIC3R_LOGLEVEL env variable is read --- src/PrusaSlicer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/PrusaSlicer.cpp b/src/PrusaSlicer.cpp index 10da1cb07..50e5096bf 100644 --- a/src/PrusaSlicer.cpp +++ b/src/PrusaSlicer.cpp @@ -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.