From 4e1af001c2d4527173efe2f98d4aa10ddcbba86b Mon Sep 17 00:00:00 2001 From: octopus_yan Date: Thu, 26 Sep 2024 21:14:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=90=8E=E7=89=88=E6=9C=AC=E5=8F=B7=E6=98=BE=E7=A4=BA=E4=B8=BA?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E5=86=85=E6=97=A7=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=8F=B7=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cn/octopusyan/alistgui/manager/ConfigManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/cn/octopusyan/alistgui/manager/ConfigManager.java b/src/main/java/cn/octopusyan/alistgui/manager/ConfigManager.java index d3e1992..a5c87e6 100644 --- a/src/main/java/cn/octopusyan/alistgui/manager/ConfigManager.java +++ b/src/main/java/cn/octopusyan/alistgui/manager/ConfigManager.java @@ -278,6 +278,10 @@ public class ConfigManager { } public static String guiVersion() { + // 覆盖配置文件读取的版本号 + if (!Constants.APP_VERSION.equals(gui().getVersion())) { + guiVersion(Constants.APP_VERSION); + } return gui().getVersion(); }