浏览代码

Cleaned up UnlockInvalidMountPointController

See:
https://github.com/cryptomator/cryptomator/pull/2985#discussion_r1252868655
https://github.com/cryptomator/cryptomator/pull/2985#discussion_r1252874468
JaniruTEC 1 年之前
父节点
当前提交
743da019f9
共有 1 个文件被更改,包括 6 次插入5 次删除
  1. 6 5
      src/main/java/org/cryptomator/ui/unlock/UnlockInvalidMountPointController.java

+ 6 - 5
src/main/java/org/cryptomator/ui/unlock/UnlockInvalidMountPointController.java

@@ -24,7 +24,6 @@ public class UnlockInvalidMountPointController implements FxController {
 	private final Vault vault;
 	private final Vault vault;
 	private final FxApplicationWindows appWindows;
 	private final FxApplicationWindows appWindows;
 	private final ResourceBundle resourceBundle;
 	private final ResourceBundle resourceBundle;
-
 	private final ExceptionType exceptionType;
 	private final ExceptionType exceptionType;
 	private final String exceptionMessage;
 	private final String exceptionMessage;
 
 
@@ -53,10 +52,6 @@ public class UnlockInvalidMountPointController implements FxController {
 		window.close();
 		window.close();
 	}
 	}
 
 
-	public boolean isShowPreferences() {
-		return exceptionType.showPreferences;
-	}
-
 	@FXML
 	@FXML
 	public void closeAndOpenPreferences() {
 	public void closeAndOpenPreferences() {
 		appWindows.showPreferencesWindow(SelectedPreferencesTab.VOLUME);
 		appWindows.showPreferencesWindow(SelectedPreferencesTab.VOLUME);
@@ -93,4 +88,10 @@ public class UnlockInvalidMountPointController implements FxController {
 			this.showPreferences = showPreferences;
 			this.showPreferences = showPreferences;
 		}
 		}
 	}
 	}
+
+	/* Getter */
+
+	public boolean isShowPreferences() {
+		return exceptionType.showPreferences;
+	}
 }
 }