[appindicator] Port to new Settings API
This commit is contained in:
@@ -102,8 +102,8 @@ class AppindicatorIntegrationPlugin(GajimPlugin):
|
|||||||
|
|
||||||
def connect(self, widget, data=None):
|
def connect(self, widget, data=None):
|
||||||
for account in app.connections:
|
for account in app.connections:
|
||||||
if app.config.get_per('accounts', account,
|
if app.settings.get_account_setting(account,
|
||||||
'sync_with_global_status'):
|
'sync_with_global_status'):
|
||||||
app.connections[account].change_status('online',
|
app.connections[account].change_status('online',
|
||||||
'online')
|
'online')
|
||||||
|
|
||||||
@@ -116,8 +116,8 @@ class AppindicatorIntegrationPlugin(GajimPlugin):
|
|||||||
def set_indicator_icon(self, *args):
|
def set_indicator_icon(self, *args):
|
||||||
is_connected = 0
|
is_connected = 0
|
||||||
for account in app.connections:
|
for account in app.connections:
|
||||||
if not app.config.get_per('accounts', account,
|
if not app.settings.get_account_setting(account,
|
||||||
'sync_with_global_status'):
|
'sync_with_global_status'):
|
||||||
continue
|
continue
|
||||||
if app.account_is_connected(account):
|
if app.account_is_connected(account):
|
||||||
is_connected = 1
|
is_connected = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user