weather-service: split activate/deactivate from start/stop

Splitting an activation flag from starting and stopping
the service makes it possible to flag the service as
wanted from the settings and still due use counting in a
subsequent commit.

Signed-off-by: Markus Göllnitz <camelcasenick@bewares.it>
This commit is contained in:
Markus Göllnitz
2024-01-27 16:09:02 +00:00
committed by Georges Basile Stavracas Neto
parent faa6e91d8b
commit 9c879c999c
3 changed files with 51 additions and 2 deletions
+2 -2
View File
@@ -202,11 +202,11 @@ manage_weather_service (GcalWeatherSettings *self)
}
gcal_weather_service_set_location (weather_service, location);
gcal_weather_service_start (weather_service);
gcal_weather_service_activate (weather_service);
}
else
{
gcal_weather_service_stop (weather_service);
gcal_weather_service_deactivate (weather_service);
}
GCAL_EXIT;