summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src')
-rw-r--r--gui/src/main/index.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts
index 8d9bfb6e77..ff45009ca4 100644
--- a/gui/src/main/index.ts
+++ b/gui/src/main/index.ts
@@ -392,6 +392,7 @@ class ApplicationMain {
this.setMacOsAppMenu();
break;
case 'linux':
+ this.installLinuxMenubarAppWindowHandlers(tray, windowController);
this.setLinuxTrayContextMenu();
this.installLinuxWindowCloseHandler(windowController);
this.setLinuxAppMenu();
@@ -1565,6 +1566,12 @@ class ApplicationMain {
});
}
+ private installLinuxMenubarAppWindowHandlers(tray: Tray, windowController: WindowController) {
+ tray.on('click', () => {
+ windowController.show();
+ });
+ }
+
private installLinuxWindowCloseHandler(windowController: WindowController) {
windowController.window.on('close', (closeEvent: Event) => {
if (this.quitStage !== AppQuitStage.ready) {