diff options
author | mkaay <mkaay@mkaay.de> | 2010-09-06 19:14:02 +0200 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-09-06 19:14:02 +0200 |
commit | 0b6f0dd36f5b4c02a444825c77cae02cc5066f34 (patch) | |
tree | 6efe97789b316dc80f8d62d322ec19d63109b6fd /pyLoadGui.py | |
parent | gui double logging fix (diff) | |
download | pyload-0b6f0dd36f5b4c02a444825c77cae02cc5066f34.tar.xz |
gui: status translation, core: added scheduler -> better account fetching UploadedTo + ShareonlineBiz account fix
Diffstat (limited to 'pyLoadGui.py')
-rwxr-xr-x | pyLoadGui.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/pyLoadGui.py b/pyLoadGui.py index 3f8a57910..6501fccb4 100755 --- a/pyLoadGui.py +++ b/pyLoadGui.py @@ -439,8 +439,6 @@ class main(QObject): self.core = Core() thread.start_new_thread(self.core.start, (False,False)) self.connector.setAddr(("core", self.core)) - #self.mainWindow.mactions["manager"].setDisabled(True) #workaround to supress bug - self.startMain() @@ -627,7 +625,11 @@ class main(QObject): def pullEvents(self): events = self.connector.getEvents() for event in events: - if event[1] == "queue": + if event[0] == "account": + self.mainWindow.emit(SIGNAL("reloadAccounts"), False) + elif event[0] == "config": + pass + elif event[1] == "queue": self.queue.addEvent(event) try: if event[0] == "update" and event[2] == "file": @@ -646,8 +648,8 @@ class main(QObject): elif event[1] == "collector": self.packageCollector.addEvent(event) - def slotReloadAccounts(self): - self.mainWindow.tabs["accounts"]["view"].model().reloadData() + def slotReloadAccounts(self, force=True): + self.mainWindow.tabs["accounts"]["view"].model().reloadData(force) def slotQuit(self): self.quitInternal() @@ -660,6 +662,7 @@ class main(QObject): if self.core.shuttedDown: break sleep(0.5) + class Loop(): def __init__(self, parent): self.parent = parent |