From 77b9737495d96a608d13a46462b729a423bb4d8c Mon Sep 17 00:00:00 2001 From: 0xb00bface <0xboobface@gmail.com> Date: Wed, 13 Apr 2022 17:58:41 +0200 Subject: [PATCH] Fix minimize to tray --- CHANGELOG.md | 4 ++++ client/src/main/java/ctbrec/ui/DesktopIntegration.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a748aa0..c9b14926 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +4.7.6 +======================== +* Fix minimize to tray + 4.7.5 ======================== * Add setting to show the number of active recordings in the tray diff --git a/client/src/main/java/ctbrec/ui/DesktopIntegration.java b/client/src/main/java/ctbrec/ui/DesktopIntegration.java index 11b7fa63..d9f1af4b 100644 --- a/client/src/main/java/ctbrec/ui/DesktopIntegration.java +++ b/client/src/main/java/ctbrec/ui/DesktopIntegration.java @@ -168,7 +168,7 @@ public class DesktopIntegration { private static boolean createTrayIcon(Stage stage) { if (SystemTray.isSupported()) { - boolean created = false; + boolean created = true; if (trayIcon == null) { trayIcon = new ctbrec.ui.TrayIcon(stage, recorder); created = trayIcon.createTrayIcon();