From de4678b47233ec73bc74a2238ce758752f5b6c8b Mon Sep 17 00:00:00 2001 From: Headshotnoby Date: Mon, 21 Jun 2021 21:53:30 -0400 Subject: [PATCH] remove useless msgbox list in basedownloader --- basedownloader.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/basedownloader.py b/basedownloader.py index d9a394a..80a321a 100644 --- a/basedownloader.py +++ b/basedownloader.py @@ -1,8 +1,7 @@ -from PyQt4 import QtGui, QtCore import json, urllib, sys, requests, time, os, zipfile, sha +from PyQt4 import QtGui, QtCore returncode = -4 -msgbox = ["", "", ""] def downloadVanilla(): circus = QtGui.QProgressDialog() @@ -30,9 +29,6 @@ def downloadVanilla(): circus.exec_() if thr.isRunning(): thr.wait() - if msgbox[0]: - getattr(QtGui.QMessageBox, msgbox[0])(None, msgbox[1], msgbox[2]) - print returncode return returncode @@ -47,7 +43,7 @@ class downloadThread(QtCore.QThread): self.jm = jm def run(self): - global returncode, msgbox + global returncode try: manifest = json.load(urllib.urlopen("http://s3.wasabisys.com/ao-manifests/assets.json"))