release:1.1.2

This commit is contained in:
RememBerBer 2022-03-24 09:21:54 +08:00
parent 39709bc92e
commit 114c441644
4 changed files with 13 additions and 19 deletions

View File

@ -6,7 +6,7 @@
<groupId>com.luoboduner.moo.info</groupId>
<artifactId>MooInfo</artifactId>
<version>1.1.1</version>
<version>1.1.2</version>
<packaging>jar</packaging>
<name>MooInfo</name>

View File

@ -11,7 +11,7 @@ import java.awt.*;
public class UiConsts {
public static final String APP_NAME = "MooInfo";
public static final String APP_VERSION = "1.1.1";
public static final String APP_VERSION = "1.1.2";
public static final int TABLE_ROW_HEIGHT = 36;

View File

@ -38,17 +38,9 @@ public class SystemInfoTestDialog extends JDialog {
setModal(true);
getRootPane().setDefaultButton(buttonOK);
buttonOK.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
onOK();
}
});
buttonOK.addActionListener(e -> onOK());
buttonCancel.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
onCancel();
}
});
buttonCancel.addActionListener(e -> onCancel());
// call onCancel() when cross is clicked
setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
@ -59,11 +51,7 @@ public class SystemInfoTestDialog extends JDialog {
});
// call onCancel() on ESCAPE
contentPane.registerKeyboardAction(new ActionListener() {
public void actionPerformed(ActionEvent e) {
onCancel();
}
}, KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
contentPane.registerKeyboardAction(e -> onCancel(), KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
}
private void onOK() {

View File

@ -1,10 +1,11 @@
{
"currentVersion": "1.1.1",
"currentVersion": "1.1.2",
"versionIndex": {
"0.0.0": "0",
"1.0.0": "1",
"1.1.0": "2",
"1.1.1": "3"
"1.1.1": "3",
"1.1.2": "4"
},
"versionDetailList": [
{
@ -26,6 +27,11 @@
"version": "1.1.1",
"title": "update flatlaf to 2.0",
"log": "● update flatlaf to 2.0\n● update oshi-core to 6.0.0\n● add battery wastage indicator\n● optimization of light theme\n"
},
{
"version": "1.1.2",
"title": "update flatlaf to 2.1",
"log": "● update flatlaf to 2.1\n● update oshi-core to 6.1.5\n● optimization of cpu indicator\n● update dependencies\n"
}
]
}