macos fixes [stage]

This commit is contained in:
crschnick 2023-08-20 22:12:18 +00:00
parent a5d35ad693
commit 62d9252e59
2 changed files with 0 additions and 7 deletions

View file

@ -45,9 +45,6 @@ public class App extends Application {
} }
if (OsType.getLocal().equals(OsType.MACOS)) { if (OsType.getLocal().equals(OsType.MACOS)) {
Desktop.getDesktop().setAboutHandler(e -> {
AppLayoutModel.get().selectSettings();
});
Desktop.getDesktop().setPreferencesHandler(e -> { Desktop.getDesktop().setPreferencesHandler(e -> {
AppLayoutModel.get().selectSettings(); AppLayoutModel.get().selectSettings();
}); });

View file

@ -33,8 +33,6 @@ public class AppTray {
var builder = new FXTrayIcon.Builder(App.getApp().getStage(), url) var builder = new FXTrayIcon.Builder(App.getApp().getStage(), url)
.menuItem(AppI18n.get("open"), e -> { .menuItem(AppI18n.get("open"), e -> {
var tray = SystemTray.getSystemTray();
tray.remove(privateTrayIcon);
OperationMode.switchToAsync(OperationMode.GUI); OperationMode.switchToAsync(OperationMode.GUI);
}); });
if (AppProperties.get().isDeveloperMode()) { if (AppProperties.get().isDeveloperMode()) {
@ -84,8 +82,6 @@ public class AppTray {
} }
privateTrayIcon.addActionListener(e -> { privateTrayIcon.addActionListener(e -> {
if (OsType.getLocal() != OsType.MACOS) { if (OsType.getLocal() != OsType.MACOS) {
var tray = SystemTray.getSystemTray();
tray.remove(privateTrayIcon);
OperationMode.switchToAsync(OperationMode.GUI); OperationMode.switchToAsync(OperationMode.GUI);
} }
}); });