Remove binding between startMinimized and minimizeToTray
This commit is contained in:
parent
8dc389c73c
commit
59a5f1398e
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue