mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 06:58:42 +00:00
Fix issue where connectionmanager continues to poll servers even when
closed. This also fixes the issue where tooltips would disappear after a second or so.
This commit is contained in:
parent
d6400431b8
commit
4366233fc8
1 changed files with 5 additions and 2 deletions
|
@ -128,7 +128,9 @@ class ConnectionManager(component.Component):
|
||||||
client.set_core_uri(uri)
|
client.set_core_uri(uri)
|
||||||
self.hide()
|
self.hide()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# This controls the timer, if it's set to false the update timer will stop.
|
||||||
|
self._do_update = True
|
||||||
self._update()
|
self._update()
|
||||||
|
|
||||||
# Auto connect to a host if applicable
|
# Auto connect to a host if applicable
|
||||||
|
@ -181,6 +183,7 @@ class ConnectionManager(component.Component):
|
||||||
|
|
||||||
def hide(self):
|
def hide(self):
|
||||||
self.connection_manager.hide()
|
self.connection_manager.hide()
|
||||||
|
self._do_update = False
|
||||||
try:
|
try:
|
||||||
gobject.source_remove(self._update_timer)
|
gobject.source_remove(self._update_timer)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
|
@ -230,7 +233,7 @@ class ConnectionManager(component.Component):
|
||||||
if self.liststore.iter_n_children(None) > 0:
|
if self.liststore.iter_n_children(None) > 0:
|
||||||
# Then select the first row
|
# Then select the first row
|
||||||
self.hostlist.get_selection().select_iter(self.liststore.get_iter_first())
|
self.hostlist.get_selection().select_iter(self.liststore.get_iter_first())
|
||||||
return True
|
return self._do_update
|
||||||
|
|
||||||
def update_buttons(self):
|
def update_buttons(self):
|
||||||
"""Updates the buttons based on selection"""
|
"""Updates the buttons based on selection"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue