Add macos specific handlers

This commit is contained in:
crschnick 2023-08-20 19:10:12 +00:00
parent b9dff411fb
commit 99da294b0a

View file

@ -44,6 +44,15 @@ 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();
});
}
if (OsType.getLocal().equals(OsType.LINUX)) {
try {
Toolkit xToolkit = Toolkit.getDefaultToolkit();