diff --git a/materialious/electron/package-lock.json b/materialious/electron/package-lock.json index a4ce25a9..5e3ca05e 100644 --- a/materialious/electron/package-lock.json +++ b/materialious/electron/package-lock.json @@ -1,12 +1,12 @@ { "name": "Materialious", - "version": "1.9.20", + "version": "1.9.21", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "Materialious", - "version": "1.9.20", + "version": "1.9.21", "license": "MIT", "dependencies": { "@capacitor-community/electron": "^5.0.0", diff --git a/materialious/package-lock.json b/materialious/package-lock.json index feb32ca4..04ceca92 100644 --- a/materialious/package-lock.json +++ b/materialious/package-lock.json @@ -1,12 +1,12 @@ { "name": "materialious", - "version": "1.9.20", + "version": "1.9.21", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "materialious", - "version": "1.9.20", + "version": "1.9.21", "hasInstallScript": true, "dependencies": { "@capacitor-community/electron": "^5.0.1", diff --git a/materialious/src/lib/components/Settings/Interface.svelte b/materialious/src/lib/components/Settings/Interface.svelte index 310ebe23..4a163a61 100644 --- a/materialious/src/lib/components/Settings/Interface.svelte +++ b/materialious/src/lib/components/Settings/Interface.svelte @@ -111,6 +111,12 @@ } }); + if (Capacitor.getPlatform() === 'electron') { + interfaceDisableAutoUpdate.subscribe((isDisabled) => { + window.electronAPI.doUpdateCheck(isDisabled); + }); + } + let pages: Pages = $state([]); authStore.subscribe(() => { pages = getPages(); diff --git a/materialious/src/lib/i18n/locales/en.json b/materialious/src/lib/i18n/locales/en.json index 218bb2ed..e081e293 100644 --- a/materialious/src/lib/i18n/locales/en.json +++ b/materialious/src/lib/i18n/locales/en.json @@ -136,7 +136,7 @@ "expandChapters": "Expand chapters by default", "expandComments": "Expand comments by default", "allowInsecureRequests": "Allow insecure requests", - "disableAutoUpdate": "Disable automatic update installation", + "disableAutoUpdate": "Disable automatic updates", "dataPreferences": { "content": "Looking to import/export subscriptions, change password or delete account? Click here and scroll to the bottom of the page.", "dataPreferences": "Data preferences" diff --git a/materialious/src/routes/(app)/+layout.svelte b/materialious/src/routes/(app)/+layout.svelte index b45e6d78..a907d4eb 100644 --- a/materialious/src/routes/(app)/+layout.svelte +++ b/materialious/src/routes/(app)/+layout.svelte @@ -20,7 +20,6 @@ instanceStore, interfaceAmoledTheme, interfaceDefaultPage, - interfaceDisableAutoUpdate, isAndroidTvStore, syncPartyPeerStore, themeColorStore @@ -211,8 +210,6 @@ if (isLoggedIn) { loadNotifications().catch(() => authStore.set(null)); } - - window.electronAPI.doUpdateCheck($interfaceDisableAutoUpdate) }); function linkClickOverwrite(event: MouseEvent) {