diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index f1bbd0a0b..ff821d3c9 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -183,9 +183,8 @@ bool GUI_App::on_init_inner() // supplied as argument to --datadir; in that case we should still run the wizard preset_bundle->setup_directories(); - app_conf_exists = app_config->exists(); // load settings - if (app_conf_exists) + if (app_config->exists()) app_config->load(); app_config->set("version", SLIC3R_VERSION); app_config->save(); @@ -258,7 +257,7 @@ bool GUI_App::on_init_inner() } CallAfter([this] { - if (!config_wizard_startup(app_conf_exists)) { + if (!config_wizard_startup(app_config->exists())) { // Only notify if there was no wizard so as not to bother too much ... preset_updater->slic3r_update_notify(); } diff --git a/src/slic3r/GUI/GUI_App.hpp b/src/slic3r/GUI/GUI_App.hpp index 1c9a462c6..68f8d86df 100644 --- a/src/slic3r/GUI/GUI_App.hpp +++ b/src/slic3r/GUI/GUI_App.hpp @@ -72,7 +72,6 @@ static wxString dots("…", wxConvUTF8); class GUI_App : public wxApp { bool m_initialized { false }; - bool app_conf_exists{ false }; wxColour m_color_label_modified; wxColour m_color_label_sys;