主界面显示版本号, 方便定位问题

This commit is contained in:
Jason
2025-04-24 15:51:21 +08:00
parent 77758d258b
commit 7e8d0b818b
2 changed files with 3 additions and 1 deletions

View File

@@ -9,6 +9,8 @@ import stat
from fsplit.filesplit import Filesplit
import onnxruntime as ort
# 项目版本号
VERSION = "1.1.1"
# ×××××××××××××××××××× [不要改] start ××××××××××××××××××××
logging.disable(logging.DEBUG) # 关闭DEBUG日志的打印
logging.disable(logging.WARNING) # 关闭WARNING日志的打印

2
gui.py
View File

@@ -70,7 +70,7 @@ class SubtitleRemoverGUI:
# 创建布局
self._create_layout()
# 创建窗口
self.window = sg.Window(title='Video Subtitle Remover', layout=self.layout,
self.window = sg.Window(title=f'Video Subtitle Remover v{backend.main.config.VERSION}' , layout=self.layout,
icon=self.icon)
while True:
# 循环读取事件