Skip to content

Commit

Permalink
添加推荐项目
Browse files Browse the repository at this point in the history
  • Loading branch information
rachpt committed Jun 21, 2020
1 parent 89cbda3 commit 959a28f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lanzou/gui/dialogs/about.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(self, parent=None):

def set_values(self, version):
self._ver = version
self.lb_name_text.setText(f"{version} (点击检查更新)") # 更新版本
self.lb_name_text.setText(f"v{version} (点击检查更新)") # 更新版本

def show_update(self, ver, msg):
self.lb_new_ver = QLabel("新版") # 检测新版
Expand Down Expand Up @@ -70,9 +70,11 @@ def initUI(self):
self.buttonBox.rejected.connect(self.reject)
self.buttonBox.setStyleSheet(btn_style)

self.recommend = QLabel("<br />大文件推荐使用 <a href='https://github.com/Aruelius/cloud189'>cloud189-cli</a>")
self.recommend.setOpenExternalLinks(True)

self.line = QLine(QPoint(), QPoint(550, 0))
self.lb_line = QLabel()
self.lb_line.setText('<html><hr /></html>')
self.lb_line = QLabel('<html><hr /></html>')

vbox = QVBoxLayout()
vbox.addWidget(self.logo)
Expand All @@ -88,6 +90,7 @@ def initUI(self):
self.form.addRow(self.lb_about, self.lb_about_text)
vbox.addLayout(self.form)
vbox.addStretch(1)
vbox.addWidget(self.recommend)
vbox.addWidget(self.lb_line)
donate = QLabel()
donate.setText("<b>捐助我</b>&nbsp;如果你愿意")
Expand Down

0 comments on commit 959a28f

Please sign in to comment.