mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 23:48:40 +00:00
Remove main window update() attempts in SystemTray.
Force the add_torrent call to happen right away.
This commit is contained in:
parent
3ccfb4e03e
commit
d5ab09e11f
3 changed files with 2 additions and 5 deletions
|
@ -412,6 +412,7 @@ class AddTorrentDialog:
|
||||||
row = self.torrent_liststore.iter_next(row)
|
row = self.torrent_liststore.iter_next(row)
|
||||||
|
|
||||||
client.add_torrent_file(torrent_filenames, torrent_options)
|
client.add_torrent_file(torrent_filenames, torrent_options)
|
||||||
|
client.force_call()
|
||||||
self.dialog.destroy()
|
self.dialog.destroy()
|
||||||
|
|
||||||
def _on_button_apply_clicked(self, widget):
|
def _on_button_apply_clicked(self, widget):
|
||||||
|
|
|
@ -237,15 +237,11 @@ class SystemTray(component.Component):
|
||||||
self.window.hide()
|
self.window.hide()
|
||||||
else:
|
else:
|
||||||
self.window.present()
|
self.window.present()
|
||||||
# Force UI update as we don't update it while minimized
|
|
||||||
self.window.update()
|
|
||||||
else:
|
else:
|
||||||
if self.config["lock_tray"] == True:
|
if self.config["lock_tray"] == True:
|
||||||
self.unlock_tray("mainwinshow")
|
self.unlock_tray("mainwinshow")
|
||||||
else:
|
else:
|
||||||
self.window.show()
|
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):
|
def on_tray_popup(self, status_icon, button, activate_time):
|
||||||
"""Called when the tray icon is right clicked."""
|
"""Called when the tray icon is right clicked."""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue