mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-27 04:42:33 +00:00
feat: suppress self-update in MSIX Store build
This commit is contained in:
@@ -931,7 +931,9 @@ void GUI_App::post_init()
|
|||||||
this->preset_updater->sync(http_url, language, network_ver, sys_preset ? preset_bundle : nullptr);
|
this->preset_updater->sync(http_url, language, network_ver, sys_preset ? preset_bundle : nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
this->check_new_version_sf();
|
// Store builds update through the Microsoft Store, never self-update.
|
||||||
|
if (!is_running_in_msix())
|
||||||
|
this->check_new_version_sf();
|
||||||
const auto cloud_provider = get_printer_cloud_provider();
|
const auto cloud_provider = get_printer_cloud_provider();
|
||||||
if (is_user_login(cloud_provider) && !app_config->get_stealth_mode()) {
|
if (is_user_login(cloud_provider) && !app_config->get_stealth_mode()) {
|
||||||
// this->check_privacy_version(0);
|
// this->check_privacy_version(0);
|
||||||
|
|||||||
@@ -2577,7 +2577,10 @@ static wxMenu* generate_help_menu()
|
|||||||
// Check New Version
|
// Check New Version
|
||||||
append_menu_item(helpMenu, wxID_ANY, _L("Check for Updates"), _L("Check for Updates"),
|
append_menu_item(helpMenu, wxID_ANY, _L("Check for Updates"), _L("Check for Updates"),
|
||||||
[](wxCommandEvent&) {
|
[](wxCommandEvent&) {
|
||||||
wxGetApp().check_new_version_sf(true, 1);
|
if (is_running_in_msix())
|
||||||
|
open_ms_store_product_page();
|
||||||
|
else
|
||||||
|
wxGetApp().check_new_version_sf(true, 1);
|
||||||
}, "", nullptr, []() {
|
}, "", nullptr, []() {
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user