From 743da019f9b315b2b65458556672a0ab41b6f33f Mon Sep 17 00:00:00 2001 From: JaniruTEC <52893617+JaniruTEC@users.noreply.github.com> Date: Wed, 5 Jul 2023 15:22:58 +0200 Subject: [PATCH] Cleaned up UnlockInvalidMountPointController See: https://github.com/cryptomator/cryptomator/pull/2985#discussion_r1252868655 https://github.com/cryptomator/cryptomator/pull/2985#discussion_r1252874468 --- .../ui/unlock/UnlockInvalidMountPointController.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/cryptomator/ui/unlock/UnlockInvalidMountPointController.java b/src/main/java/org/cryptomator/ui/unlock/UnlockInvalidMountPointController.java index 667cb552b..2fb005bac 100644 --- a/src/main/java/org/cryptomator/ui/unlock/UnlockInvalidMountPointController.java +++ b/src/main/java/org/cryptomator/ui/unlock/UnlockInvalidMountPointController.java @@ -24,7 +24,6 @@ public class UnlockInvalidMountPointController implements FxController { private final Vault vault; private final FxApplicationWindows appWindows; private final ResourceBundle resourceBundle; - private final ExceptionType exceptionType; private final String exceptionMessage; @@ -53,10 +52,6 @@ public class UnlockInvalidMountPointController implements FxController { window.close(); } - public boolean isShowPreferences() { - return exceptionType.showPreferences; - } - @FXML public void closeAndOpenPreferences() { appWindows.showPreferencesWindow(SelectedPreferencesTab.VOLUME); @@ -93,4 +88,10 @@ public class UnlockInvalidMountPointController implements FxController { this.showPreferences = showPreferences; } } + + /* Getter */ + + public boolean isShowPreferences() { + return exceptionType.showPreferences; + } } \ No newline at end of file