gate workflow with enable_ota flag in app config

This commit is contained in:
Ian Chua
2026-08-31 15:48:13 +08:00
parent d9fa43f1d7
commit c4fea8ad24

View File

@@ -283,7 +283,7 @@ void PresetUpdater::priv::set_download_prefs(AppConfig *app_config)
version_check_url = app_config->version_check_url(); version_check_url = app_config->version_check_url();
auto profile_update_url = app_config->profile_update_url(); auto profile_update_url = app_config->profile_update_url();
if (!profile_update_url.empty()) if (!profile_update_url.empty() && app_config->get_bool("enable_ota"))
enabled_config_update = true; enabled_config_update = true;
else else
enabled_config_update = false; enabled_config_update = false;
@@ -1055,6 +1055,10 @@ void PresetUpdater::priv::check_installed_vendor_profiles() const
BOOST_LOG_TRIVIAL(info) << "[Orca Updater]:Checking whether the profile from resource is newer"; BOOST_LOG_TRIVIAL(info) << "[Orca Updater]:Checking whether the profile from resource is newer";
AppConfig *app_config = GUI::wxGetApp().app_config; AppConfig *app_config = GUI::wxGetApp().app_config;
if (!app_config->get_bool("enable_ota"))
return;
const auto enabled_vendors = app_config->vendors(); const auto enabled_vendors = app_config->vendors();
std::set<std::string> bundles; std::set<std::string> bundles;