summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/src/main/index.ts1
-rw-r--r--gui/src/main/tray-icon-controller.ts4
2 files changed, 5 insertions, 0 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts
index bb84d520fe..8cebf9511b 100644
--- a/gui/src/main/index.ts
+++ b/gui/src/main/index.ts
@@ -594,6 +594,7 @@ class ApplicationMain {
this.installWindowCloseHandler(this.windowController);
this.installTrayClickHandlers();
+ this.trayIconController?.setWindowController(this.windowController);
const filePath = path.resolve(path.join(__dirname, '../renderer/index.html'));
try {
diff --git a/gui/src/main/tray-icon-controller.ts b/gui/src/main/tray-icon-controller.ts
index 9890eba8ff..f1028bd11c 100644
--- a/gui/src/main/tray-icon-controller.ts
+++ b/gui/src/main/tray-icon-controller.ts
@@ -45,6 +45,10 @@ export default class TrayIconController {
}
}
+ public setWindowController(windowController: WindowController) {
+ this.windowController = windowController;
+ }
+
get iconType(): TrayIconType {
return this.iconTypeValue;
}