From 911cca5373e54670e0e2977a0b914d1115bb4679 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Tue, 24 Jan 2023 15:08:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Daction=E7=9A=84=E5=AF=B9?= =?UTF-8?q?=E9=92=A9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AutoConfig.py | 4 ++++ Model/__pycache__/__init__.cpython-37.pyc | Bin 1180 -> 1162 bytes UI/__pycache__/AutoConfig.cpython-37.pyc | Bin 3811 -> 3793 bytes 3 files changed, 4 insertions(+) diff --git a/AutoConfig.py b/AutoConfig.py index 406ceb8..b4235a4 100755 --- a/AutoConfig.py +++ b/AutoConfig.py @@ -42,6 +42,7 @@ urlSourcesList = [ "http://gfdgdxi.free.idcfengye.com/uengine-runner-list/auto/", # 备用源 3 "http://127.0.0.1/uengine-runner-list/auto/" # 本地测试源 ] +urlSourcesIndex = 0 urlSources = urlSourcesList[0] lists = [] @@ -522,6 +523,7 @@ def readtxt(path): def ChangeSources(): global urlSources + global urlSourcesIndex 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(): @@ -535,7 +537,9 @@ def ChangeSources(): for i in lists: nmodel.appendRow(QtGui.QStandardItem(i[0])) ui.searchList.setModel(nmodel) + urlSourcesIndex = i except: + [ui.actionGitlink, ui.actionGitee, ui.actionGithub, ui.action_IPv6, ui.action_2, ui.action_3, ui.action][urlSourcesIndex].setChecked(True) traceback.print_exc() QtWidgets.QMessageBox.critical(window, "提示", "无法连接服务器") break diff --git a/Model/__pycache__/__init__.cpython-37.pyc b/Model/__pycache__/__init__.cpython-37.pyc index 5c93ee687420da9a17231c4bba12edbe84f6463c..10f7abc2b75f0a49e95297ba9ff9c576598fb74d 100644 GIT binary patch delta 80 zcmbQk*~Q82#LLUY00chG=QnbzF^NX8C+FwpCg!EAWGLbUivLp8FUg%8!Q{rsy?H*9 YAR{C9ROoEJzJd@`$PZj_v2J3(j+>@PHJOFI78SDT6 diff --git a/UI/__pycache__/AutoConfig.cpython-37.pyc b/UI/__pycache__/AutoConfig.cpython-37.pyc index dfeb1e3d9b7877b146c940c805cb103116938689..cb423672afe98a21b71bbd4048c7a300942b134f 100644 GIT binary patch delta 156 zcmaDXdr_9#iI@)+6*Z2%S=BbKQ~oBJuM|YCB7n4-zBv; zyCi?}S&m06jHZ(}@QMn6lof#qa}dj9@>SkSDGM+YE`y|Iat5EH27(XQc#Fd(H$SB` QC)JJ