UPD: App shortcuts

This commit is contained in:
Robert Kossessa
2024-02-09 16:23:22 +01:00
parent 8a5ca8102f
commit f3e69f5591
3 changed files with 44 additions and 1 deletions

View File

@@ -5,8 +5,16 @@ import ConfigPane from '@/components/config/ConfigPane.vue'
import Navbar from '@/components/navbar/Navbar.vue'
import { useStore } from '@/store'
const { electron } = window
const store = useStore()
electron.onMenu((key) => {
console.log('menu', key)
if(key==='connect') {
store.setConnected(!store.connected)
}
})
store.fetchProfiles()
</script>