Remove main window update() attempts in SystemTray.

Force the add_torrent call to happen right away.
This commit is contained in:
Andrew Resch 2008-01-25 00:28:07 +00:00
parent 3ccfb4e03e
commit d5ab09e11f
3 changed files with 2 additions and 5 deletions

View File

@ -412,6 +412,7 @@ class AddTorrentDialog:
row = self.torrent_liststore.iter_next(row)
client.add_torrent_file(torrent_filenames, torrent_options)
client.force_call()
self.dialog.destroy()
def _on_button_apply_clicked(self, widget):

View File

@ -111,4 +111,4 @@ class SideBar(component.Component):
if value == "Paused":
component.get("TorrentView").set_filter("state",
deluge.common.TORRENT_STATE.index("Paused"))

View File

@ -237,15 +237,11 @@ class SystemTray(component.Component):
self.window.hide()
else:
self.window.present()
# Force UI update as we don't update it while minimized
self.window.update()
else:
if self.config["lock_tray"] == True:
self.unlock_tray("mainwinshow")
else:
self.window.show()
# Force UI update as we don't update it while in tray
self.window.update()
def on_tray_popup(self, status_icon, button, activate_time):
"""Called when the tray icon is right clicked."""