Remove binding between startMinimized and minimizeToTray

This commit is contained in:
0xb00bface 2023-02-25 17:03:56 +01:00
parent 8dc389c73c
commit 59a5f1398e
1 changed files with 0 additions and 11 deletions

View File

@ -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);
}