Commit 3458d307 authored by Guido Gunther's avatar Guido Gunther

shell: Don't create loctation manager twice

Since the panels are constructed before the init in the shell's
idle_cb we'd construct twice since priv->location_manager is still
NULL. USe the getter instead to be independent from init order.
Signed-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent ca624a19
Pipeline #66473 passed with stages
in 34 minutes and 40 seconds
......@@ -498,7 +498,7 @@ setup_idle_cb (PhoshShell *self)
self,
G_CONNECT_SWAPPED);
priv->location_manager = phosh_location_manager_new ();
phosh_shell_get_location_manager (self);
if (priv->sensor_proxy_manager) {
priv->proximity = phosh_proximity_new (priv->sensor_proxy_manager,
priv->lockscreen_manager);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment