From 39042f7917b155b0d344f632b1af700b04ba76de Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Tue, 15 Sep 2026 14:58:04 +0800 Subject: [PATCH] feat(update): auto-replace stale downloads and relocate update toggle Closes #9140 --- .../editor/EditorSettingsDialog.vue | 52 +++++--------- .../__tests__/useAppUpdater.spec.ts | 70 ++++++++++++++++++- apps/desktop/src/composables/useAppUpdater.ts | 35 +++++++++- apps/desktop/src/i18n/locales/az.ts | 2 - apps/desktop/src/i18n/locales/en.ts | 2 - apps/desktop/src/i18n/locales/es.ts | 2 - apps/desktop/src/i18n/locales/it.ts | 2 - apps/desktop/src/i18n/locales/ja.ts | 2 - apps/desktop/src/i18n/locales/ko.ts | 2 - apps/desktop/src/i18n/locales/pt-BR.ts | 2 - apps/desktop/src/i18n/locales/tr.ts | 2 - apps/desktop/src/i18n/locales/zh-CN.ts | 2 - apps/desktop/src/i18n/locales/zh-TW.ts | 2 - .../src/lib/settings/settingsSearch.ts | 2 +- .../src/lib/settings/settingsTransfer.ts | 4 +- docs/testing/software-update.md | 1 + 16 files changed, 123 insertions(+), 61 deletions(-) diff --git a/apps/desktop/src/components/editor/EditorSettingsDialog.vue b/apps/desktop/src/components/editor/EditorSettingsDialog.vue index 5b44e5529d..e41b71a0d9 100644 --- a/apps/desktop/src/components/editor/EditorSettingsDialog.vue +++ b/apps/desktop/src/components/editor/EditorSettingsDialog.vue @@ -1735,7 +1735,6 @@ function resetDefaultsForTab(tab: SettingsCategory) { editGenerateSqlQuoteIdentifiers.value = DEFAULT_EDITOR_SETTINGS.generateSqlQuoteIdentifiers; editFormatSqlOnSqlFileSave.value = DEFAULT_EDITOR_SETTINGS.formatSqlOnSqlFileSave; editClickTableNavigationTarget.value = DEFAULT_EDITOR_SETTINGS.clickTableNavigationTarget; - editUpdateNotificationsEnabled.value = DEFAULT_EDITOR_SETTINGS.updateNotificationsEnabled; editSidebarObjectInfoMode.value = DEFAULT_EDITOR_SETTINGS.sidebarObjectInfoMode; editSidebarAllowHorizontalScroll.value = DEFAULT_EDITOR_SETTINGS.sidebarAllowHorizontalScroll; editSidebarShowTooltips.value = DEFAULT_EDITOR_SETTINGS.sidebarShowTooltips; @@ -1790,6 +1789,7 @@ function resetDefaultsForTab(tab: SettingsCategory) { editSnippets.value = DEFAULT_SQL_SNIPPETS.map((s) => ({ ...s })); } else if (tab === "about") { editUpdateDownloadSource.value = DEFAULT_EDITOR_SETTINGS.updateDownloadSource; + editUpdateNotificationsEnabled.value = DEFAULT_EDITOR_SETTINGS.updateNotificationsEnabled; } } @@ -6217,16 +6217,6 @@ onUnmounted(() => { -
-
- -

- {{ t("settings.updateNotificationsEnabledDescription") }} -

-
- -
-
@@ -9398,8 +9388,17 @@ LIMIT 100;
-
-
+
+
+
+ +

+ {{ t("settings.updateNotificationsEnabledDescription") }} +

+
+ +
+

@@ -9420,12 +9419,9 @@ LIMIT 100; -

+