From b8e7a4066a19fa725579e4cf6d18b3739cd59f2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Mon, 20 May 2024 21:26:52 +0800 Subject: [PATCH] fix --- LunaTranslator/LunaTranslator/gui/settingpage_about.py | 2 +- plugins/CMakeLists.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LunaTranslator/LunaTranslator/gui/settingpage_about.py b/LunaTranslator/LunaTranslator/gui/settingpage_about.py index 4cd14885..3004306f 100644 --- a/LunaTranslator/LunaTranslator/gui/settingpage_about.py +++ b/LunaTranslator/LunaTranslator/gui/settingpage_about.py @@ -36,7 +36,7 @@ def getversion(self): ) ) ) - if _version is not None and versionstring < _version: + if _version is not None and version < tuple(int(_) for _ in _version[1:].split(".")): if globalconfig["autoupdate"]: updatemethod(_version, self.progresssignal.emit) diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index 9efb86ac..9e39341f 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -28,8 +28,8 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/version) include(generate_product_version) set(VERSION_MAJOR 2) -set(VERSION_MINOR 51) -set(VERSION_PATCH 10) +set(VERSION_MINOR 52) +set(VERSION_PATCH 0) add_library(pch pch.cpp) target_precompile_headers(pch PUBLIC pch.h)