mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-07-02 21:11:03 +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)) {
|
if (OsType.getLocal().equals(OsType.LINUX)) {
|
||||||
try {
|
try {
|
||||||
Toolkit xToolkit = Toolkit.getDefaultToolkit();
|
Toolkit xToolkit = Toolkit.getDefaultToolkit();
|
||||||
|
|
Loading…
Reference in a new issue