mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-06-30 20:10:57 +12:00
Add macos specific handlers
This commit is contained in:
parent
b9dff411fb
commit
99da294b0a
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue