diff --git a/app/src/main/java/io/xpipe/app/core/App.java b/app/src/main/java/io/xpipe/app/core/App.java index 78535922..5c8c2d03 100644 --- a/app/src/main/java/io/xpipe/app/core/App.java +++ b/app/src/main/java/io/xpipe/app/core/App.java @@ -45,9 +45,6 @@ public class App extends Application { } if (OsType.getLocal().equals(OsType.MACOS)) { - Desktop.getDesktop().setAboutHandler(e -> { - AppLayoutModel.get().selectSettings(); - }); Desktop.getDesktop().setPreferencesHandler(e -> { AppLayoutModel.get().selectSettings(); }); diff --git a/app/src/main/java/io/xpipe/app/core/AppTray.java b/app/src/main/java/io/xpipe/app/core/AppTray.java index e0e3f965..13ab4eb7 100644 --- a/app/src/main/java/io/xpipe/app/core/AppTray.java +++ b/app/src/main/java/io/xpipe/app/core/AppTray.java @@ -33,8 +33,6 @@ public class AppTray { var builder = new FXTrayIcon.Builder(App.getApp().getStage(), url) .menuItem(AppI18n.get("open"), e -> { - var tray = SystemTray.getSystemTray(); - tray.remove(privateTrayIcon); OperationMode.switchToAsync(OperationMode.GUI); }); if (AppProperties.get().isDeveloperMode()) { @@ -84,8 +82,6 @@ public class AppTray { } privateTrayIcon.addActionListener(e -> { if (OsType.getLocal() != OsType.MACOS) { - var tray = SystemTray.getSystemTray(); - tray.remove(privateTrayIcon); OperationMode.switchToAsync(OperationMode.GUI); } });