remove useless msgbox list in basedownloader

This commit is contained in:
Headshotnoby 2021-06-21 21:53:30 -04:00
parent e7e7cca397
commit de4678b472

View File

@ -1,8 +1,7 @@
from PyQt4 import QtGui, QtCore
import json, urllib, sys, requests, time, os, zipfile, sha import json, urllib, sys, requests, time, os, zipfile, sha
from PyQt4 import QtGui, QtCore
returncode = -4 returncode = -4
msgbox = ["", "", ""]
def downloadVanilla(): def downloadVanilla():
circus = QtGui.QProgressDialog() circus = QtGui.QProgressDialog()
@ -30,9 +29,6 @@ def downloadVanilla():
circus.exec_() circus.exec_()
if thr.isRunning(): thr.wait() if thr.isRunning(): thr.wait()
if msgbox[0]:
getattr(QtGui.QMessageBox, msgbox[0])(None, msgbox[1], msgbox[2])
print returncode print returncode
return returncode return returncode
@ -47,7 +43,7 @@ class downloadThread(QtCore.QThread):
self.jm = jm self.jm = jm
def run(self): def run(self):
global returncode, msgbox global returncode
try: try:
manifest = json.load(urllib.urlopen("http://s3.wasabisys.com/ao-manifests/assets.json")) manifest = json.load(urllib.urlopen("http://s3.wasabisys.com/ao-manifests/assets.json"))