forked from Qortal/qortal
Add tray menu item to show Build Version
Core build version in a message dialog for OS which cannot display the entire tooltip.
This commit is contained in:
parent
d72953ae78
commit
acce81cdcd
@ -23,6 +23,7 @@ import java.util.List;
|
||||
|
||||
import javax.swing.JDialog;
|
||||
import javax.swing.JMenuItem;
|
||||
import javax.swing.JOptionPane;
|
||||
import javax.swing.JPopupMenu;
|
||||
import javax.swing.SwingWorker;
|
||||
import javax.swing.event.PopupMenuEvent;
|
||||
@ -178,6 +179,14 @@ public class SysTray {
|
||||
menu.add(syncTime);
|
||||
}
|
||||
|
||||
JMenuItem about = new JMenuItem(Translator.INSTANCE.translate("SysTray", "BUILD_VERSION"));
|
||||
about.addActionListener(actionEvent -> {
|
||||
destroyHiddenDialog();
|
||||
|
||||
JOptionPane.showMessageDialog(null,"Qortal Core\n" + Translator.INSTANCE.translate("SysTray", "BUILD_VERSION") + ":\n" + Controller.getInstance().getVersionStringWithoutPrefix(),"Qortal Core",1);
|
||||
});
|
||||
menu.add(about);
|
||||
|
||||
JMenuItem exit = new JMenuItem(Translator.INSTANCE.translate("SysTray", "EXIT"));
|
||||
exit.addActionListener(actionEvent -> {
|
||||
destroyHiddenDialog();
|
||||
|
Loading…
Reference in New Issue
Block a user