添加构建时间
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
from PySide6.QtGui import QDesktopServices, Qt
|
||||
from PySide6.QtWidgets import QVBoxLayout, QHBoxLayout
|
||||
from pyparsing import version_info
|
||||
from qfluentwidgets import PrimaryPushSettingCard, FluentIcon, GroupHeaderCardWidget, PushButton, ImageLabel, TitleLabel
|
||||
|
||||
from ui.components.widget import Widget
|
||||
from utils.function import is_frozen
|
||||
|
||||
|
||||
class AboutWidget(Widget):
|
||||
@@ -17,11 +19,17 @@ class AboutWidget(Widget):
|
||||
self.hBox.addWidget(self.logoImage, 0, Qt.AlignLeft)
|
||||
self.hBox.addWidget(self.appNameLabel, 1, Qt.AlignLeft)
|
||||
|
||||
build_time_str = ''
|
||||
if is_frozen():
|
||||
from build_info import BUILD_TIME
|
||||
build_time_str = f",构建时间:{BUILD_TIME}"
|
||||
|
||||
self.version_card = PrimaryPushSettingCard(
|
||||
text="获取源码",
|
||||
icon=FluentIcon.INFO,
|
||||
title="关于",
|
||||
content="作者:许方杰。当前版本:1.0.0\n本软件使用 GPLv3 开源协议进行分发,作者不对使用本软件造成的任何损失负责。"
|
||||
content=f"作者:许方杰。当前版本:1.0.0{build_time_str}\n"
|
||||
f"本软件使用 GPLv3 开源协议进行分发,作者不对使用本软件造成的任何损失负责。"
|
||||
)
|
||||
self.button_list = [
|
||||
PushButton("访问网站"),
|
||||
|
||||
Reference in New Issue
Block a user