mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-17 10:11:27 +00:00
cleanup [ci skip]
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user