From d0ae9e6eb5118638da2a7610e31399054beaab8a 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: Sun, 21 Jul 2024 21:38:21 +0800 Subject: [PATCH] fix --- LunaTranslator/LunaTranslator/LunaTranslator.py | 1 + LunaTranslator/LunaTranslator/gui/translatorUI.py | 1 - plugins/CMakeLists.txt | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LunaTranslator/LunaTranslator/LunaTranslator.py b/LunaTranslator/LunaTranslator/LunaTranslator.py index 9856ec47..5578958f 100644 --- a/LunaTranslator/LunaTranslator/LunaTranslator.py +++ b/LunaTranslator/LunaTranslator/LunaTranslator.py @@ -1194,6 +1194,7 @@ class MAINUI: self.parsedefaultfont() self.loadmetadatas() self.translation_ui = QUnFrameWindow() + winsharedutils.showintab(int(self.translation_ui.winId()), globalconfig["showintab"]) self.translation_ui.show() self.translation_ui.aftershowdosomething() self.mainuiloadafter() diff --git a/LunaTranslator/LunaTranslator/gui/translatorUI.py b/LunaTranslator/LunaTranslator/gui/translatorUI.py index be36cbad..3227707e 100644 --- a/LunaTranslator/LunaTranslator/gui/translatorUI.py +++ b/LunaTranslator/LunaTranslator/gui/translatorUI.py @@ -436,7 +436,6 @@ class QUnFrameWindow(resizableframeless): windows.ShowWindow(int(self.winId()), windows.SW_SHOWNOACTIVATE) else: self.show() - windows.SetForegroundWindow(int(self.winId())) def aftershowdosomething(self): diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index 0e11174c..5024bcc1 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -29,7 +29,7 @@ include(generate_product_version) set(VERSION_MAJOR 5) set(VERSION_MINOR 15) -set(VERSION_PATCH 2) +set(VERSION_PATCH 3) add_library(pch pch.cpp) target_precompile_headers(pch PUBLIC pch.h)