From 53ad95bfd964ae523df75f88c0c1fbf90982cd26 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Wed, 15 Nov 2023 13:39:27 +0100 Subject: [PATCH] Fix for SPE-2038 : "Ask for/to unsaved changes ..." Check box isn't updated in preferences --- src/slic3r/GUI/Preferences.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/slic3r/GUI/Preferences.cpp b/src/slic3r/GUI/Preferences.cpp index f1c67415e4..f3bfe59fb2 100644 --- a/src/slic3r/GUI/Preferences.cpp +++ b/src/slic3r/GUI/Preferences.cpp @@ -137,6 +137,12 @@ void PreferencesDialog::show(const std::string& highlight_opt_key /*= std::strin for (const std::string& opt_key : {"suppress_hyperlinks", "downloader_url_registered"}) m_optgroup_other->set_value(opt_key, app_config->get_bool(opt_key)); + for (const std::string& opt_key : { "default_action_on_close_application" + ,"default_action_on_new_project" + ,"default_action_on_select_preset" }) + m_optgroup_general->set_value(opt_key, app_config->get(opt_key) == "none"); + m_optgroup_general->set_value("default_action_on_dirty_project", app_config->get("default_action_on_dirty_project").empty()); + // update colors for color pickers of the labels update_color(m_sys_colour, wxGetApp().get_label_clr_sys()); update_color(m_mod_colour, wxGetApp().get_label_clr_modified());