Fix import
This commit is contained in:
parent
e5beff266a
commit
54fe4dacf2
|
@ -21,6 +21,8 @@ from gi.repository import GLib
|
||||||
|
|
||||||
from gajim.common import app
|
from gajim.common import app
|
||||||
|
|
||||||
|
if app.is_installed('GEOCLUE'):
|
||||||
|
from gi.repository import Geoclue
|
||||||
|
|
||||||
log = logging.getLogger('gajim.c.dbus.location')
|
log = logging.getLogger('gajim.c.dbus.location')
|
||||||
|
|
||||||
|
@ -104,6 +106,5 @@ def enable():
|
||||||
log.warning('GeoClue not installed')
|
log.warning('GeoClue not installed')
|
||||||
return
|
return
|
||||||
|
|
||||||
from gi.repository import Geoclue
|
|
||||||
listener = LocationListener.get()
|
listener = LocationListener.get()
|
||||||
listener.start()
|
listener.start()
|
||||||
|
|
Loading…
Reference in New Issue