From 59a5f1398ec36c61382e5c05d1ba8ade59275e66 Mon Sep 17 00:00:00 2001 From: 0xb00bface <0xboobface@gmail.com> Date: Sat, 25 Feb 2023 17:03:56 +0100 Subject: [PATCH] Remove binding between startMinimized and minimizeToTray --- .../src/main/java/ctbrec/ui/settings/SettingsTab.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/client/src/main/java/ctbrec/ui/settings/SettingsTab.java b/client/src/main/java/ctbrec/ui/settings/SettingsTab.java index 715fbd2d..1ac57835 100644 --- a/client/src/main/java/ctbrec/ui/settings/SettingsTab.java +++ b/client/src/main/java/ctbrec/ui/settings/SettingsTab.java @@ -40,7 +40,6 @@ import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.Objects; import static ctbrec.Settings.DirectoryStructure.*; import static ctbrec.Settings.ProxyType.*; @@ -344,16 +343,6 @@ public class SettingsTab extends Tab implements TabSelectionListener { prefs.getSetting("downloadFilename").ifPresent(s -> bindEnabledProperty(s, recordLocal)); prefs.getSetting("hlsdlExecutable").ifPresent(s -> bindEnabledProperty(s, useHlsdl.not())); prefs.getSetting("loghlsdlOutput").ifPresent(s -> bindEnabledProperty(s, useHlsdl.not())); - startMinimized.addListener((obs, oldV, newV) -> { - if (Objects.equals(newV, Boolean.TRUE)) { - minimizeToTray.set(true); - } - }); - minimizeToTray.addListener((obs, oldV, newV) -> { - if (Objects.equals(newV, Boolean.FALSE)) { - startMinimized.set(false); - } - }); postProcessingStepPanel.disableProperty().bind(recordLocal.not()); variablesHelpButton.disableProperty().bind(recordLocal); }