feat(update): support verified public HTTP downloads
This commit is contained in:
@@ -117,6 +117,13 @@ class ForcedUpdateDialog(QDialog):
|
||||
self.details_label = QLabel(details)
|
||||
self.details_label.setWordWrap(True)
|
||||
layout.addWidget(self.details_label)
|
||||
self.http_warning_label = QLabel("当前使用临时 HTTP 通道下载,安装前仍会校验完整性")
|
||||
self.http_warning_label.setWordWrap(True)
|
||||
self.http_warning_label.setStyleSheet("color: #b45309;")
|
||||
self.http_warning_label.setHidden(
|
||||
not update_installer.uses_plain_http(self.result.download_url)
|
||||
)
|
||||
layout.addWidget(self.http_warning_label)
|
||||
self.stage_label = QLabel("发现必须升级的新版本")
|
||||
layout.addWidget(self.stage_label)
|
||||
self.progress_bar = QProgressBar()
|
||||
|
||||
Reference in New Issue
Block a user