From 114c44164422ea4bf9af082a2517e4b9bb1fdef2 Mon Sep 17 00:00:00 2001 From: RememBerBer Date: Thu, 24 Mar 2022 09:21:54 +0800 Subject: [PATCH 1/2] release:1.1.2 --- pom.xml | 2 +- .../com/luoboduner/moo/info/ui/UiConsts.java | 2 +- .../info/ui/dialog/SystemInfoTestDialog.java | 18 +++--------------- src/main/resources/version_summary.json | 10 ++++++++-- 4 files changed, 13 insertions(+), 19 deletions(-) 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 @@ 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 SystemInfoTestDialog() { 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 void windowClosing(WindowEvent e) { }); // 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 From ee5c72ac21648aa97d085b7f52ddfd7fc6f9cfa0 Mon Sep 17 00:00:00 2001 From: RememBerBer Date: Thu, 24 Mar 2022 09:24:16 +0800 Subject: [PATCH 2/2] release:1.1.2 --- pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/pom.xml b/pom.xml index 686dcf7..8047219 100644 --- a/pom.xml +++ b/pom.xml @@ -163,6 +163,7 @@ true false false + true compiler:Default.isl