mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Fix #1822
Only query the core for the known accounts if connected to it.
This commit is contained in:
parent
dd3f78bd36
commit
f6826a4f48
1 changed files with 2 additions and 1 deletions
|
@ -882,7 +882,8 @@ class Preferences(component.Component):
|
||||||
try:
|
try:
|
||||||
if model.get_value(row, 1) == _("Daemon"):
|
if model.get_value(row, 1) == _("Daemon"):
|
||||||
# Let's see update the accounts related stuff
|
# Let's see update the accounts related stuff
|
||||||
self._get_accounts_tab_data()
|
if client.connected():
|
||||||
|
self._get_accounts_tab_data()
|
||||||
self.notebook.set_current_page(model.get_value(row, 0))
|
self.notebook.set_current_page(model.get_value(row, 0))
|
||||||
except TypeError:
|
except TypeError:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue