Skip to content

Commit

Permalink
fixes: the window is collapsed making the app unusable
Browse files Browse the repository at this point in the history
  • Loading branch information
rkmax committed Mar 3, 2020
1 parent 89e1bab commit 3c25414
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ public class MainApplication extends Application
public static final Version QuarkVer = new Version(0, 3, 0);
public static final Version MinGoldleafVer = new Version(0, 8, 0);

private static final int WIDTH = 900;
private static final int HEIGHT = 400;

public MainController controller;
public Stage stage;
public Scene scene;
Expand Down Expand Up @@ -131,14 +134,18 @@ public void start(Stage primaryStage) throws Exception
Pane base = loader.load();
cfg = new Config();

scene = new Scene(base, 900, 400);
scene = new Scene(base, WIDTH, HEIGHT);
scene.getStylesheets().add(getClass().getClassLoader().getResource("Main.css").toExternalForm());
controller = loader.getController();
primaryStage.getIcons().add(new Image(getClass().getClassLoader().getResource("Icon.png").toExternalForm()));
primaryStage.setResizable(false);
stage = primaryStage;
stage.setTitle("Quark v" + QuarkVer.toString() + " - Goldleaf's USB client");
stage.setScene(scene);
stage.setMinHeight(HEIGHT);
stage.setMaxHeight(HEIGHT);
stage.setMaxWidth(WIDTH);
stage.setMinWidth(WIDTH);
stage.sizeToScene();

Task<Void> usbtask = new Task<Void>()
{
Expand Down

0 comments on commit 3c25414

Please sign in to comment.