diff --git a/apps/desktop/src/components/config/DriverStoreDialog.vue b/apps/desktop/src/components/config/DriverStoreDialog.vue index 07944992b..f35e1a3ec 100644 --- a/apps/desktop/src/components/config/DriverStoreDialog.vue +++ b/apps/desktop/src/components/config/DriverStoreDialog.vue @@ -239,6 +239,7 @@ const usageSummary = computed(() => { ]; }); const canClearDownloadCache = computed(() => !clearingDownloadCache.value && installing.value === null && !upgradingAll.value && reinstallingJre.value === null && downloadCacheBytes.value > 0); +const downloadSourceBusy = computed(() => refreshing.value || installing.value !== null || upgradingAll.value || queuedDriverInstalls.value.length > 0 || reinstallingJre.value !== null); const jreUsageByKey = computed(() => { const map = new Map(); for (const item of driverStoreUsage.value?.jres || []) { @@ -330,6 +331,13 @@ async function forceRefresh() { } } +function setUpdateDownloadSource(value: unknown) { + if (value !== "official" && value !== "cnb" && value !== "atomgit") return; + if (value === settingsStore.editorSettings.updateDownloadSource) return; + settingsStore.updateEditorSettings({ updateDownloadSource: value }); + void forceRefresh().catch(() => undefined); +} + async function loadJavaRuntimeConfig() { const config = await api.getAgentJavaRuntimeConfig(); javaRuntimeConfig.value = config; @@ -1143,7 +1151,20 @@ watch(driverStoreTab, (tab) => { {{ t("driverStore.storageTab") }} -
+
+
+ {{ t("settings.updateDownloadSource") }} + +