From 415dfece5845828f0ada217dbfbe176d63c47f64 Mon Sep 17 00:00:00 2001 From: Sebastian Stenzel Date: Mon, 6 Jan 2020 09:46:01 +0100 Subject: [PATCH] sames as in 9b6145ce: We only want the user to trigger the listener --- .../ui/preferences/GeneralPreferencesController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/ui/src/main/java/org/cryptomator/ui/preferences/GeneralPreferencesController.java b/main/ui/src/main/java/org/cryptomator/ui/preferences/GeneralPreferencesController.java index 94647efa8..d05387470 100644 --- a/main/ui/src/main/java/org/cryptomator/ui/preferences/GeneralPreferencesController.java +++ b/main/ui/src/main/java/org/cryptomator/ui/preferences/GeneralPreferencesController.java @@ -46,9 +46,9 @@ public class GeneralPreferencesController implements FxController { debugModeCheckbox.selectedProperty().bindBidirectional(settings.debugMode()); - nodeOrientation.selectedToggleProperty().addListener(this::toggleNodeOrientation); nodeOrientationLtr.setSelected(settings.userInterfaceOrientation().get() == NodeOrientation.LEFT_TO_RIGHT); nodeOrientationRtl.setSelected(settings.userInterfaceOrientation().get() == NodeOrientation.RIGHT_TO_LEFT); + nodeOrientation.selectedToggleProperty().addListener(this::toggleNodeOrientation); } public boolean isTrayMenuSupported() {