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

[addons] Reset addon settings when destroying the addon instance. #18963

Merged
merged 1 commit into from
Dec 21, 2020

Conversation

ksooo
Copy link
Member

@ksooo ksooo commented Dec 21, 2020

When destroying an addon instance, the settings it holds must be reset, because the instance can be reused later, for example, when switching from a profile with the addon enabled to an addon with the same addon but different settings enabled.

@AlwinEsch as discussed internally, this regression was introduced by your recent binary addon changes.

Runtime-tested on Android and macOS, latest Kodi master.

@ksooo ksooo added Type: Fix non-breaking change which fixes an issue Component: Add-ons v19 Matrix labels Dec 21, 2020
@ksooo ksooo added this to the Matrix 19.0-RC1 milestone Dec 21, 2020
@ksooo ksooo requested a review from AlwinEsch December 21, 2020 16:21
Copy link
Member

@AlwinEsch AlwinEsch left a comment

Choose a reason for hiding this comment

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

Yes, this changes are good and makes sense, has not thought before about profile change cases.

@ksooo ksooo merged commit 39d0d50 into xbmc:master Dec 21, 2020
@ksooo ksooo deleted the addons-fix-settings branch December 21, 2020 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Add-ons Type: Fix non-breaking change which fixes an issue v19 Matrix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants