mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-19 07:15:54 -04:00
Allow hide window, set info handler for opening webpage
This commit is contained in:
parent
5b7a8e31d0
commit
8d32f87409
@ -73,7 +73,7 @@ public class SystemTray {
|
||||
// prevent exiting the app when the last window gets closed
|
||||
// For now we allow to close the app by closing the window.
|
||||
// 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 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());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user