mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-02 16:23:48 +03:00
feat: double click shows windows
This commit is contained in:
parent
0ee55b7fd5
commit
402e5df9ac
@ -277,14 +277,9 @@ export class WindowManager {
|
|||||||
if (process.platform !== "darwin") {
|
if (process.platform !== "darwin") {
|
||||||
await updateSystemTray();
|
await updateSystemTray();
|
||||||
|
|
||||||
tray.addListener("click", () => {
|
tray.addListener("double-click", () => {
|
||||||
if (this.mainWindow) {
|
if (this.mainWindow) {
|
||||||
if (
|
this.mainWindow.show();
|
||||||
WindowManager.mainWindow?.isMinimized() ||
|
|
||||||
!WindowManager.mainWindow?.isVisible()
|
|
||||||
) {
|
|
||||||
WindowManager.mainWindow?.show();
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
this.createMainWindow();
|
this.createMainWindow();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user