From f50eb1f047782c4cb6e74c40428e9ff96ae2694b Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Mon, 9 May 2022 13:06:15 +0200 Subject: [PATCH] Revert "Reset webdavport field if changes are not applied and focus lost" This reverts commit c6e9e33feb5c92c413676214b75fdd73b5f4786c. --- .../ui/preferences/VolumePreferencesController.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/java/org/cryptomator/ui/preferences/VolumePreferencesController.java b/src/main/java/org/cryptomator/ui/preferences/VolumePreferencesController.java index 8f9f6f6da..4af86dc85 100644 --- a/src/main/java/org/cryptomator/ui/preferences/VolumePreferencesController.java +++ b/src/main/java/org/cryptomator/ui/preferences/VolumePreferencesController.java @@ -48,11 +48,6 @@ public class VolumePreferencesController implements FxController { webDavPortField.setText(String.valueOf(settings.port().get())); changeWebDavPortButton.visibleProperty().bind(settings.port().asString().isNotEqualTo(webDavPortField.textProperty())); changeWebDavPortButton.disableProperty().bind(Bindings.createBooleanBinding(this::validateWebDavPort, webDavPortField.textProperty()).not()); - webDavPortField.focusedProperty().addListener((observableValue, wasFocused, isFocused) -> { - if(!isFocused) { - webDavPortField.setText(String.valueOf(settings.port().get())); - } - }); webDavUrlSchemeChoiceBox.getItems().addAll(WebDavUrlScheme.values()); webDavUrlSchemeChoiceBox.valueProperty().bindBidirectional(settings.preferredGvfsScheme());