From ca6ccedb57ef6a7984ae341759edbd2395778a0e Mon Sep 17 00:00:00 2001 From: Bail <2915289604@qq.com> Date: Mon, 23 Jan 2023 19:36:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E6=9C=AC=E4=BF=AE=E5=A4=8D=E5=95=86?= =?UTF-8?q?=E5=BA=97=E6=8D=A2=E6=BA=90=E9=97=AE=E9=A2=98=20=E7=8E=B0?= =?UTF-8?q?=E5=9C=A8=E5=AF=B9=E9=92=A9=E4=BD=8D=E7=BD=AE=E8=BF=98=E6=98=AF?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E4=BF=AE=E6=94=B9=EF=BC=8C=E5=8F=AA=E6=98=AF?= =?UTF-8?q?=E9=98=B2=E6=AD=A2=E4=BA=86urlSources=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AutoConfig.py | 6 ++++-- README.md | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/AutoConfig.py b/AutoConfig.py index 6624dc4..56117ea 100755 --- a/AutoConfig.py +++ b/AutoConfig.py @@ -25,7 +25,7 @@ try: import PyQt5.QtWebEngineWidgets as QtWebEngineWidgets webeng = True except: - print("未安装此依赖库") + print("未安装 QtWebEngine") #这样更容易排查问题 webeng = False print("""太常引·建康中秋夜为吕叔潜赋 一轮秋影转金波,飞镜又重磨。把酒问姮娥:被白发、欺人奈何? @@ -526,7 +526,8 @@ def ChangeSources(): sources = [ui.actionGitlink, ui.actionGitee, ui.actionGithub, ui.action_IPv6, ui.action_2, ui.action_3, ui.action] for i in range(0, len(sources)): if sources[i].isChecked(): - urlSources = urlSourcesList[i] + old_urlSources = urlSources #先备份 + urlSources = urlSourcesList[i] #然后切换尝试 # 解析云列表 try: # 获取列表 @@ -539,6 +540,7 @@ def ChangeSources(): except: traceback.print_exc() QtWidgets.QMessageBox.critical(window, "提示", "无法连接服务器") + urlSources = old_urlSources #如果源不可用则换回来 break if __name__ == "__main__": diff --git a/README.md b/README.md index bcd297e..2966ab3 100755 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ sudo apt upgrade ### 三、使用程序自带的更新程序更新 -**1、打开 UEngine 运行器然后点击“关于”=>“检查更新”,点击“更新(更新过程中会关闭所有Python应用,包括这个应用)”** +**1、打开 UEngine 运行器然后点击“关于”=>“检查更新”,点击“更新(更新过程中会关闭这个应用的所有进程)”** ![image.png](https://storage.deepin.org/thread/202205220759382269_image.png) **2、输入密码进行更新** ![image.png](https://storage.deepin.org/thread/202205220801175784_image.png)