Skip to content

Commit

Permalink
fix: tray state stuck
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Jan 2, 2025
1 parent eb5df26 commit 758c60e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/dorion-tray/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const handleSpeakAction = async (payload) => {
}

const handleTrayUpdate = async () => {
const icon = Object.keys(state).find(k => state[k]) || 'disconnected'
const icon = (!state.connected && 'disconnected') || Object.keys(state).find(k => state[k])
await invoke('set_tray_icon', { event: icon })
}

Expand Down

0 comments on commit 758c60e

Please sign in to comment.