Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UX/Linux] Open main window when clicking the Tray icon #3401

Merged
merged 2 commits into from
Jan 6, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Open main window with one click on the Tray icon
  • Loading branch information
arielj committed Jan 6, 2024
commit bf173b059fd977357738f1a2e45a8fc2116b09b2
4 changes: 4 additions & 0 deletions src/backend/tray_icon/tray_icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ export const initTrayIcon = async (mainWindow: BrowserWindow) => {
mainWindow.show()
})

appIcon.on('click', () => {
mainWindow.show()
})

ipcMain.on('changeLanguage', async () => {
await loadContextMenu()
})
Expand Down