diff --git a/pom.xml b/pom.xml
index a021f82..686dcf7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
com.luoboduner.moo.info
MooInfo
- 1.1.1
+ 1.1.2
jar
MooInfo
diff --git a/src/main/java/com/luoboduner/moo/info/ui/UiConsts.java b/src/main/java/com/luoboduner/moo/info/ui/UiConsts.java
index 88f2268..38aa068 100644
--- a/src/main/java/com/luoboduner/moo/info/ui/UiConsts.java
+++ b/src/main/java/com/luoboduner/moo/info/ui/UiConsts.java
@@ -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;
diff --git a/src/main/java/com/luoboduner/moo/info/ui/dialog/SystemInfoTestDialog.java b/src/main/java/com/luoboduner/moo/info/ui/dialog/SystemInfoTestDialog.java
index 93daf75..1b83ea5 100644
--- a/src/main/java/com/luoboduner/moo/info/ui/dialog/SystemInfoTestDialog.java
+++ b/src/main/java/com/luoboduner/moo/info/ui/dialog/SystemInfoTestDialog.java
@@ -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() {
diff --git a/src/main/resources/version_summary.json b/src/main/resources/version_summary.json
index c8fa54e..92c1e97 100644
--- a/src/main/resources/version_summary.json
+++ b/src/main/resources/version_summary.json
@@ -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"
}
]
}
\ No newline at end of file