feat: complete check for update

This commit is contained in:
tiny-craft
2023-08-20 15:46:06 +08:00
parent 36c23deef8
commit 218bebe09d
4 changed files with 42 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ import { BrowserOpenURL } from 'wailsjs/runtime/runtime.js'
import Log from '@/components/icons/Log.vue'
import useConnectionStore from 'stores/connections.js'
import Help from '@/components/icons/Help.vue'
import usePreferencesStore from 'stores/preferences.js'
const themeVars = useThemeVars()
@@ -80,12 +81,14 @@ const renderContextLabel = (option) => {
}
const dialogStore = useDialogStore()
const preferencesStore = usePreferencesStore()
const onSelectPreferenceMenu = (key) => {
switch (key) {
case 'preferences':
dialogStore.openPreferencesDialog()
break
case 'update':
preferencesStore.checkForUpdate(true)
break
}
}