فهرست منبع

cleanup [ci skip]

Sebastian Stenzel 6 سال پیش
والد
کامیت
00c7cae923
1فایلهای تغییر یافته به همراه3 افزوده شده و 5 حذف شده
  1. 3 5
      main/ui/src/main/java/org/cryptomator/ui/FxApplication.java

+ 3 - 5
main/ui/src/main/java/org/cryptomator/ui/FxApplication.java

@@ -28,25 +28,23 @@ public class FxApplication extends Application {
 
 	public void start() {
 		LOG.trace("FxApplication.start()");
+
 		if (Desktop.getDesktop().isSupported(Desktop.Action.APP_PREFERENCES)) {
 			Desktop.getDesktop().setPreferencesHandler(this::handlePreferences);
 		}
 
-		start(null);
+		mainWindow.build().showMainWindow();
 	}
 
 	@Override
 	public void start(Stage stage) {
-		assert stage == null;
-
-		mainWindow.build().showMainWindow();
+		throw new UnsupportedOperationException("Use start() instead.");
 	}
 
 	private void handlePreferences(PreferencesEvent preferencesEvent) {
 		Platform.runLater(this::showPreferencesWindow);
 	}
 
-
 	public void showPreferencesWindow() {
 		preferencesWindow.build().showPreferencesWindow();
 	}