diff --git a/src/main/java/org/cryptomator/ui/error/ErrorController.java b/src/main/java/org/cryptomator/ui/error/ErrorController.java index 45c940bcb..5b7dd9a60 100644 --- a/src/main/java/org/cryptomator/ui/error/ErrorController.java +++ b/src/main/java/org/cryptomator/ui/error/ErrorController.java @@ -75,6 +75,7 @@ public class ErrorController implements FxController { private final BooleanExpression errorSolutionFound = matchingErrorDiscussion.isNotNull(); private final BooleanProperty isLoadingHttpResponse = new SimpleBooleanProperty(); private final BooleanProperty askedForLookupDatabasePermission = new SimpleBooleanProperty(); + private final boolean formerSceneWasResizable; @Inject ErrorController(Application application, @Named("stackTrace") String stackTrace, ErrorCode errorCode, @Nullable Scene previousScene, Stage window, Environment environment, ExecutorService executorService) { @@ -85,12 +86,14 @@ public class ErrorController implements FxController { this.window = window; this.environment = environment; this.executorService = executorService; + this.formerSceneWasResizable = window.isResizable(); } @FXML public void back() { if (previousScene != null) { window.setScene(previousScene); + window.setResizable(formerSceneWasResizable); } } diff --git a/src/main/resources/fxml/error.fxml b/src/main/resources/fxml/error.fxml index aa0703d0c..91f7fff3e 100644 --- a/src/main/resources/fxml/error.fxml +++ b/src/main/resources/fxml/error.fxml @@ -9,86 +9,97 @@ + - + spacing="12"> - - - - - - - - - -