mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-01 19:26:09 -04:00
Allow hide window, set info handler for opening webpage
This commit is contained in:
parent
5b7a8e31d0
commit
8d32f87409
1 changed files with 8 additions and 1 deletions
|
@ -73,7 +73,7 @@ public class SystemTray {
|
||||||
// prevent exiting the app when the last window gets closed
|
// prevent exiting the app when the last window gets closed
|
||||||
// For now we allow to close the app by closing the window.
|
// For now we allow to close the app by closing the window.
|
||||||
// Later we only let it close via the system trays exit.
|
// Later we only let it close via the system trays exit.
|
||||||
Platform.setImplicitExit(true);
|
Platform.setImplicitExit(false);
|
||||||
|
|
||||||
MenuItem aboutItem = new MenuItem("Info about Bitsquare");
|
MenuItem aboutItem = new MenuItem("Info about Bitsquare");
|
||||||
MenuItem exitItem = new MenuItem("Exit");
|
MenuItem exitItem = new MenuItem("Exit");
|
||||||
|
@ -124,6 +124,13 @@ public class SystemTray {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
aboutItem.addActionListener(e -> {
|
||||||
|
try {
|
||||||
|
Utilities.openWebPage("https://bitsquare.io");
|
||||||
|
} catch (Exception e1) {
|
||||||
|
e1.printStackTrace();
|
||||||
|
}
|
||||||
|
});
|
||||||
exitItem.addActionListener(e -> onExit.run());
|
exitItem.addActionListener(e -> onExit.run());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue