diff options
author | David Kocik <kocikdav@gmail.com> | 2021-11-08 19:20:39 +0300 |
---|---|---|
committer | David Kocik <kocikdav@gmail.com> | 2021-11-10 17:27:46 +0300 |
commit | 43986c289660f04f3698ddd082b28a1d37f3eb4e (patch) | |
tree | 92645021de9a17a47cf3a0e0425fc8e8cc13243d /src/slic3r/GUI/ConfigWizard.cpp | |
parent | 6895e0fde132f672d4a5981faff0f16b373597b3 (diff) |
Changes in notifying about new releases.
- Unified preferences settings. version_check option is replaced with notify_release that has 3 states.
- fixed logic when show notification based on version string.
- notification shows released version
- dialog notifying new version is never showing if external updater is running.
Escape quotes inside path to external updater
Diffstat (limited to 'src/slic3r/GUI/ConfigWizard.cpp')
-rw-r--r-- | src/slic3r/GUI/ConfigWizard.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slic3r/GUI/ConfigWizard.cpp b/src/slic3r/GUI/ConfigWizard.cpp index 762de2cf5..737c14317 100644 --- a/src/slic3r/GUI/ConfigWizard.cpp +++ b/src/slic3r/GUI/ConfigWizard.cpp @@ -1206,7 +1206,7 @@ PageUpdate::PageUpdate(ConfigWizard *parent) boldfont.SetWeight(wxFONTWEIGHT_BOLD); auto *box_slic3r = new wxCheckBox(this, wxID_ANY, _L("Check for application updates")); - box_slic3r->SetValue(app_config->get("version_check") == "1"); + box_slic3r->SetValue(app_config->get("notify_release") != "none"); append(box_slic3r); append_text(wxString::Format(_L( "If enabled, %s checks for new application versions online. When a new version becomes available, " @@ -2697,7 +2697,7 @@ bool ConfigWizard::priv::apply_config(AppConfig *app_config, PresetBundle *prese app_config->set_vendors(appconfig_new); - app_config->set("version_check", page_update->version_check ? "1" : "0"); + app_config->set("notify_release", page_update->version_check ? "all" : "none"); app_config->set("preset_update", page_update->preset_update ? "1" : "0"); app_config->set("export_sources_full_pathnames", page_reload_from_disk->full_pathnames ? "1" : "0"); |