correctly use getter / setter. Fixes #7970
This commit is contained in:
parent
a21f6ba561
commit
172fc16784
1 changed files with 6 additions and 6 deletions
12
src/disco.py
12
src/disco.py
|
@ -507,7 +507,7 @@ class ServiceDiscoveryWindow(object):
|
||||||
|
|
||||||
def __init__(self, account, jid='', node='', address_entry=False,
|
def __init__(self, account, jid='', node='', address_entry=False,
|
||||||
parent=None, initial_identities=None):
|
parent=None, initial_identities=None):
|
||||||
self.account = account
|
self._account = account
|
||||||
self.parent = parent
|
self.parent = parent
|
||||||
if not jid:
|
if not jid:
|
||||||
jid = gajim.config.get_per('accounts', account, 'hostname')
|
jid = gajim.config.get_per('accounts', account, 'hostname')
|
||||||
|
@ -589,12 +589,12 @@ _('Without a connection, you can not browse available services'))
|
||||||
self.window.show_all()
|
self.window.show_all()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def _get_account(self):
|
def account(self):
|
||||||
return self.account
|
return self._account
|
||||||
|
|
||||||
@property
|
@account.setter
|
||||||
def _set_account(self, value):
|
def account(self, value):
|
||||||
self.account = value
|
self._account = value
|
||||||
self.cache.account = value
|
self.cache.account = value
|
||||||
if self.browser:
|
if self.browser:
|
||||||
self.browser.account = value
|
self.browser.account = value
|
||||||
|
|
Loading…
Add table
Reference in a new issue