From 3e6204a657e032a37a1211d1643c3aa4e6f12eed Mon Sep 17 00:00:00 2001 From: Jan-Peter Klein Date: Mon, 1 Jul 2024 12:32:50 +0200 Subject: [PATCH] remove showMinimizeButton setting --- src/main/java/org/cryptomator/common/settings/Settings.java | 4 ---- .../java/org/cryptomator/common/settings/SettingsJson.java | 3 --- .../ui/preferences/InterfacePreferencesController.java | 3 --- src/main/resources/fxml/preferences_interface.fxml | 3 --- 4 files changed, 13 deletions(-) diff --git a/src/main/java/org/cryptomator/common/settings/Settings.java b/src/main/java/org/cryptomator/common/settings/Settings.java index a54e71a4f..04facdcd0 100644 --- a/src/main/java/org/cryptomator/common/settings/Settings.java +++ b/src/main/java/org/cryptomator/common/settings/Settings.java @@ -59,7 +59,6 @@ public class Settings { public final StringProperty keychainProvider; public final ObjectProperty userInterfaceOrientation; public final StringProperty licenseKey; - public final BooleanProperty showMinimizeButton; public final BooleanProperty showTrayIcon; public final IntegerProperty windowXPosition; public final IntegerProperty windowYPosition; @@ -96,7 +95,6 @@ public class Settings { this.keychainProvider = new SimpleStringProperty(this, "keychainProvider", json.keychainProvider); this.userInterfaceOrientation = new SimpleObjectProperty<>(this, "userInterfaceOrientation", parseEnum(json.uiOrientation, NodeOrientation.class, NodeOrientation.LEFT_TO_RIGHT)); this.licenseKey = new SimpleStringProperty(this, "licenseKey", json.licenseKey); - this.showMinimizeButton = new SimpleBooleanProperty(this, "showMinimizeButton", json.showMinimizeButton); this.showTrayIcon = new SimpleBooleanProperty(this, "showTrayIcon", json.showTrayIcon); this.windowXPosition = new SimpleIntegerProperty(this, "windowXPosition", json.windowXPosition); this.windowYPosition = new SimpleIntegerProperty(this, "windowYPosition", json.windowYPosition); @@ -123,7 +121,6 @@ public class Settings { keychainProvider.addListener(this::somethingChanged); userInterfaceOrientation.addListener(this::somethingChanged); licenseKey.addListener(this::somethingChanged); - showMinimizeButton.addListener(this::somethingChanged); showTrayIcon.addListener(this::somethingChanged); windowXPosition.addListener(this::somethingChanged); windowYPosition.addListener(this::somethingChanged); @@ -177,7 +174,6 @@ public class Settings { json.keychainProvider = keychainProvider.get(); json.uiOrientation = userInterfaceOrientation.get().name(); json.licenseKey = licenseKey.get(); - json.showMinimizeButton = showMinimizeButton.get(); json.showTrayIcon = showTrayIcon.get(); json.windowXPosition = windowXPosition.get(); json.windowYPosition = windowYPosition.get(); diff --git a/src/main/java/org/cryptomator/common/settings/SettingsJson.java b/src/main/java/org/cryptomator/common/settings/SettingsJson.java index 2ded82885..1dd68e02a 100644 --- a/src/main/java/org/cryptomator/common/settings/SettingsJson.java +++ b/src/main/java/org/cryptomator/common/settings/SettingsJson.java @@ -51,9 +51,6 @@ class SettingsJson { @JsonProperty("port") int port = Settings.DEFAULT_PORT; - @JsonProperty("showMinimizeButton") - boolean showMinimizeButton = Settings.DEFAULT_SHOW_MINIMIZE_BUTTON; - @JsonProperty("showTrayIcon") boolean showTrayIcon; diff --git a/src/main/java/org/cryptomator/ui/preferences/InterfacePreferencesController.java b/src/main/java/org/cryptomator/ui/preferences/InterfacePreferencesController.java index 40983c3f0..937431571 100644 --- a/src/main/java/org/cryptomator/ui/preferences/InterfacePreferencesController.java +++ b/src/main/java/org/cryptomator/ui/preferences/InterfacePreferencesController.java @@ -36,7 +36,6 @@ public class InterfacePreferencesController implements FxController { private final ResourceBundle resourceBundle; private final SupportedLanguages supportedLanguages; public ChoiceBox themeChoiceBox; - public CheckBox showMinimizeButtonCheckbox; public CheckBox showTrayIconCheckbox; public ChoiceBox preferredLanguageChoiceBox; public ToggleGroup nodeOrientation; @@ -63,8 +62,6 @@ public class InterfacePreferencesController implements FxController { themeChoiceBox.valueProperty().bindBidirectional(settings.theme); themeChoiceBox.setConverter(new UiThemeConverter(resourceBundle)); - showMinimizeButtonCheckbox.selectedProperty().bindBidirectional(settings.showMinimizeButton); - showTrayIconCheckbox.selectedProperty().bindBidirectional(settings.showTrayIcon); preferredLanguageChoiceBox.getItems().addAll(supportedLanguages.getLanguageTags()); diff --git a/src/main/resources/fxml/preferences_interface.fxml b/src/main/resources/fxml/preferences_interface.fxml index 6cb9b7d73..990b66c8c 100644 --- a/src/main/resources/fxml/preferences_interface.fxml +++ b/src/main/resources/fxml/preferences_interface.fxml @@ -37,9 +37,6 @@ - - -