Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/slic3r/GUI/Preferences.cpp')
-rw-r--r--src/slic3r/GUI/Preferences.cpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/slic3r/GUI/Preferences.cpp b/src/slic3r/GUI/Preferences.cpp
index d8af0e887..0687399b2 100644
--- a/src/slic3r/GUI/Preferences.cpp
+++ b/src/slic3r/GUI/Preferences.cpp
@@ -73,7 +73,7 @@ void PreferencesDialog::build(size_t selected_tab)
// Add "General" tab
m_optgroup_general = create_options_tab(_L("General"), tabs);
m_optgroup_general->m_on_change = [this](t_config_option_key opt_key, boost::any value) {
- if (opt_key == "default_action_on_close_application" || opt_key == "default_action_on_select_preset")
+ if (opt_key == "default_action_on_close_application" || opt_key == "default_action_on_select_preset" || opt_key == "default_action_on_new_project")
m_values[opt_key] = boost::any_cast<bool>(value) ? "none" : "discard";
else
m_values[opt_key] = boost::any_cast<bool>(value) ? "1" : "0";
@@ -186,19 +186,28 @@ void PreferencesDialog::build(size_t selected_tab)
option = Option(def, "single_instance");
m_optgroup_general->append_single_option_line(option);
- def.label = L("Ask for unsaved changes when closing application");
+ def.label = L("Ask for unsaved changes when closing application or loading new project");
def.type = coBool;
- def.tooltip = L("When closing the application, always ask for unsaved changes");
+ def.tooltip = L("Always ask for unsaved changes, when: \n"
+ "- Closing PrusaSlicer while some presets are modified,\n"
+ "- Loading a new project while some presets are modified");
def.set_default_value(new ConfigOptionBool{ app_config->get("default_action_on_close_application") == "none" });
option = Option(def, "default_action_on_close_application");
m_optgroup_general->append_single_option_line(option);
def.label = L("Ask for unsaved changes when selecting new preset");
def.type = coBool;
- def.tooltip = L("Always ask for unsaved changes when selecting new preset");
+ def.tooltip = L("Always ask for unsaved changes when selecting new preset or resetting a preset");
def.set_default_value(new ConfigOptionBool{ app_config->get("default_action_on_select_preset") == "none" });
option = Option(def, "default_action_on_select_preset");
m_optgroup_general->append_single_option_line(option);
+
+ def.label = L("Ask for unsaved changes when creating new project");
+ def.type = coBool;
+ def.tooltip = L("Always ask for unsaved changes when creating new project");
+ def.set_default_value(new ConfigOptionBool{ app_config->get("default_action_on_new_project") == "none" });
+ option = Option(def, "default_action_on_new_project");
+ m_optgroup_general->append_single_option_line(option);
}
#ifdef _WIN32
else {