diff options
author | mkaay <mkaay@mkaay.de> | 2010-02-04 19:06:26 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-02-04 19:06:26 +0100 |
commit | dfcf74000e0c8021b62a74ffe0068ff685decb97 (patch) | |
tree | f12e1475ecacdbe862788527ebbe1de80b5c4578 /module/gui/Queue.py | |
parent | little fixes, closed #71 (diff) | |
download | pyload-dfcf74000e0c8021b62a74ffe0068ff685decb97.tar.xz |
better gui performance, i18n in gui, new pot files
Diffstat (limited to 'module/gui/Queue.py')
-rw-r--r-- | module/gui/Queue.py | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/module/gui/Queue.py b/module/gui/Queue.py index bd45e27dc..2aeb603b0 100644 --- a/module/gui/Queue.py +++ b/module/gui/Queue.py @@ -68,7 +68,6 @@ class Queue(QObject): def update(self): locker = QMutexLocker(self.mutex) - packs = self.connector.getPackageQueue() downloading_raw = self.connector.getDownloadQueue() downloading = {} for d in downloading_raw: @@ -93,16 +92,15 @@ class Queue(QObject): packs = self.connector.getPackageQueue() for data in packs: pack = self.QueuePack(self) - pack.setPackData(data) - files = self.connector.getPackageFiles(data["id"]) - for fid in files: - info = self.connector.getLinkInfo(fid) + pack.setPackData(data["data"]) + files = data["children"] + for fdata in files: child = self.QueueFile(self, pack) - if not info["status_type"]: - info["status_type"] = "queued" - child.setFileData(info) - pack.addPackChild(fid, child) - self.addPack(data["id"], pack) + if not fdata["status_type"]: + fdata["status_type"] = "queued" + child.setFileData(fdata) + pack.addPackChild(fdata["id"], child) + self.addPack(data["data"]["id"], pack) def addEvent(self, event): locker = QMutexLocker(self.mutex) |