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(); }