Skip to content

Commit ba2ac1e

Browse files
authored
Merge pull request #1364 from hydralauncher/feat/adjust-tray-icon-interaction
feat: double click shows windows
2 parents 0ee55b7 + 726d99a commit ba2ac1e

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hydralauncher",
3-
"version": "3.1.2",
3+
"version": "3.1.3",
44
"description": "Hydra",
55
"main": "./out/main/index.js",
66
"author": "Los Broxas",

src/main/services/window-manager.ts

+2-7
Original file line numberDiff line numberDiff line change
@@ -277,14 +277,9 @@ export class WindowManager {
277277
if (process.platform !== "darwin") {
278278
await updateSystemTray();
279279

280-
tray.addListener("click", () => {
280+
tray.addListener("double-click", () => {
281281
if (this.mainWindow) {
282-
if (
283-
WindowManager.mainWindow?.isMinimized() ||
284-
!WindowManager.mainWindow?.isVisible()
285-
) {
286-
WindowManager.mainWindow?.show();
287-
}
282+
this.mainWindow.show();
288283
} else {
289284
this.createMainWindow();
290285
}

0 commit comments

Comments
 (0)