Skip to content
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

Merged
merged 1 commit into from
Jan 7, 2018

Conversation

xhaggi
Copy link
Member

@xhaggi xhaggi commented Jan 7, 2018

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.

@xhaggi xhaggi added Type: Fix non-breaking change which fixes an issue v18 Leia labels Jan 7, 2018
@xhaggi xhaggi force-pushed the fix-register-settings branch 2 times, most recently from b63f693 to 9a3c15c Compare January 7, 2018 11:34
@@ -151,6 +152,9 @@ bool CServiceManager::InitStageTwo(const CAppParamParser &params)

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.

Copy link
Contributor

@FernetMenta FernetMenta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great. Thanks

@MartijnKaijser
Copy link
Member

had to kill all 5 triggers for this single PR.
Jenkins build this please

@xhaggi
Copy link
Member Author

xhaggi commented Jan 7, 2018

Thanks

@xhaggi xhaggi merged commit a059b8c into xbmc:master Jan 7, 2018
@Rechi Rechi added this to the L 18.0-alpha1 milestone Jan 7, 2018
@ksooo
Copy link
Member

ksooo commented Jan 7, 2018

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Fix non-breaking change which fixes an issue v18 Leia
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants