mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-26 09:30:28 +00:00
macos fixes [stage]
This commit is contained in:
parent
a5d35ad693
commit
62d9252e59
2 changed files with 0 additions and 7 deletions
|
@ -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();
|
||||||
});
|
});
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue