-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fix] register settings callback for weather manager is called before it is ready #13326
Conversation
b63f693
to
9a3c15c
Compare
xbmc/ServiceManager.cpp
Outdated
@@ -151,6 +152,9 @@ bool CServiceManager::InitStageTwo(const CAppParamParser ¶ms) | |||
|
|||
m_weatherManager.reset(new CWeatherManager()); | |||
|
|||
// register settings callbacks | |||
GetSettings().GetSettingsManager()->RegisterCallback(m_weatherManager.get(), { CSettings::SETTING_WEATHER_ADDON, CSettings::SETTING_WEATHER_ADDONSETTINGS }); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
9a3c15c
to
a19bc8e
Compare
a19bc8e
to
48f90cc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great. Thanks
had to kill all 5 triggers for this single PR. |
Thanks |
@xhaggi: There is another reference to the weather manager left in Settings.cpp : 48f90cc#diff-8d943449895d0ff6b503e49c8ecf6868R832 Is this intended? If not, the include for the weather manager header could be removed from Settings.cpp |
As @FernetMenta pointed out, the weather manager is not ready when we want to register the settings callbacks. Now the registration/deregistration is moved to our service manager.
@MartijnKaijser ping you too.