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:
committed by
Georges Basile Stavracas Neto
parent
faa6e91d8b
commit
9c879c999c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user