feat: double click shows windows

This commit is contained in:
Zamitto 2024-12-30 22:38:16 -03:00
parent 0ee55b7fd5
commit 402e5df9ac

View File

@ -277,14 +277,9 @@ export class WindowManager {
if (process.platform !== "darwin") {
await updateSystemTray();
tray.addListener("click", () => {
tray.addListener("double-click", () => {
if (this.mainWindow) {
if (
WindowManager.mainWindow?.isMinimized() ||
!WindowManager.mainWindow?.isVisible()
) {
WindowManager.mainWindow?.show();
}
this.mainWindow.show();
} else {
this.createMainWindow();
}