fix do_update for classic mode

This commit is contained in:
Marcos Pinto 2008-07-03 03:21:34 +00:00
parent 4366233fc8
commit 72add9da10
1 changed files with 3 additions and 2 deletions

View File

@ -118,6 +118,9 @@ class ConnectionManager(component.Component):
self.on_selection_changed) self.on_selection_changed)
# If classic mode is set, we just start up a localhost daemon and connect to it # If classic mode is set, we just start up a localhost daemon and connect to it
# This controls the timer, if it's set to false the update timer will stop.
self._do_update = True
if self.gtkui_config["classic_mode"]: if self.gtkui_config["classic_mode"]:
uri = "http://localhost:58846" uri = "http://localhost:58846"
os.popen("deluged -p 58846") os.popen("deluged -p 58846")
@ -129,8 +132,6 @@ class ConnectionManager(component.Component):
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