File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import { getCurrentWindow } from "@tauri-apps/api/window"
1818import Sidebar from " ./components/sidebar/Sidebar.vue"
1919import { useToast } from " primevue/usetoast"
2020import UpdateAvailableModal from " ./components/modals/UpdateAvailableModal.vue"
21+ import { usePortable } from " ./composables/usePortable"
2122
2223const { t, locale } = useI18n ()
2324
@@ -115,9 +116,13 @@ onUnmounted(() => {
115116 unlistenClose ?.()
116117})
117118
118- watch (() => settingsStore .appUpdateStatus , (newStatus ) => {
119+ const {isPortable} = usePortable ()
120+
121+ watch (() => settingsStore .appUpdateStatus , async (newStatus ) => {
119122 const skipVersion = localStorage .getItem (' skipUpdateVersion' )
120- if (newStatus ?.version && newStatus .version !== skipVersion ) {
123+
124+ // update available will only show on portable
125+ if (newStatus ?.version && newStatus .version !== skipVersion && isPortable .value ) {
121126 openModal (' updateAvailableModal' )
122127 }
123128})
You can’t perform that action at this time.
0 commit comments