[set_location] update send_location calls. Fixes #353
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
[info]
|
[info]
|
||||||
name: Set Location
|
name: Set Location
|
||||||
short_name: set_location
|
short_name: set_location
|
||||||
version: 1.2.0
|
version: 1.2.1
|
||||||
description: Set information about your current geographical or physical location.
|
description: Set information about your current geographical or physical location.
|
||||||
To be able to set your location on the built-in map, you must install gir1.2-gtkchamplain
|
To be able to set your location on the built-in map, you must install gir1.2-gtkchamplain
|
||||||
authors: Denis Fomin <fominde@gmail.com>
|
authors: Denis Fomin <fominde@gmail.com>
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ class SetLocationPlugin(GajimPlugin):
|
|||||||
def deactivate(self):
|
def deactivate(self):
|
||||||
self._data = {}
|
self._data = {}
|
||||||
for acct in app.connections:
|
for acct in app.connections:
|
||||||
app.connections[acct].send_location(self._data)
|
app.connections[acct].get_module('UserLocation').send(self._data)
|
||||||
app.ged.remove_event_handler('signed-in', ged.POSTGUI,
|
app.ged.remove_event_handler('signed-in', ged.POSTGUI,
|
||||||
self.on_signed_in)
|
self.on_signed_in)
|
||||||
|
|
||||||
@@ -96,9 +96,10 @@ class SetLocationPlugin(GajimPlugin):
|
|||||||
#set geo for all accounts
|
#set geo for all accounts
|
||||||
for acct in app.connections:
|
for acct in app.connections:
|
||||||
if app.config.get_per('accounts', acct, 'publish_location'):
|
if app.config.get_per('accounts', acct, 'publish_location'):
|
||||||
app.connections[acct].send_location(self._data)
|
app.connections[acct].get_module('UserLocation').send(
|
||||||
|
self._data)
|
||||||
elif app.config.get_per('accounts', acct, 'publish_location'):
|
elif app.config.get_per('accounts', acct, 'publish_location'):
|
||||||
app.connections[acct].send_location(self._data)
|
app.connections[acct].get_module('UserLocation').send(self._data)
|
||||||
|
|
||||||
|
|
||||||
class SetLocationPluginConfigDialog(GajimPluginConfigDialog):
|
class SetLocationPluginConfigDialog(GajimPluginConfigDialog):
|
||||||
|
|||||||
Reference in New Issue
Block a user