-
-
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
[addons] fix addon install if not present before #12825
Conversation
@tamland is this fix OK for you, that we bring it in asap? |
This check needs to be move inside |
d6f9227
to
b37bd5a
Compare
Is changed. Think to replace the |
works for me. thanks @AlwinEsch @tamland |
Install test has worked, but there seems still a fault with start of a new installed addon. If I have installed YouTube and start it are the strings from them not visible. Also brings it a Python error after select of a field. If Kodi is restarted does it work, there seems the loading of new installed addon not work! |
yep same behaviour here. I thought it was unrelated but indeed completely reverting #12473 makes those strings work again... |
On last changes comes the problem that a addon install who was not present before has not worked. This comes from a try to disable a addon who is not present and brought a false. With them becomes before checked that a addon is present, otherwise is this step ignored.
b37bd5a
to
0e35a21
Compare
Have added a second commit who fix the fault with not usable addon after install. The fault itself was coming after the change of the function value If all commits are reverted and only this with change to std::string is done, comes the fault. The function has changed the addon class on CAddonInstaller. |
xbmc/addons/AddonInstaller.cpp
Outdated
@@ -614,12 +614,15 @@ bool CAddonInstallJob::DoWork() | |||
if (!Install(installFrom, m_repo)) | |||
return false; | |||
|
|||
if (!CAddonMgr::GetInstance().LoadAddon(m_addon->ID())) | |||
AddonPtr addon = CAddonMgr::GetInstance().LoadAddon(m_addon->ID()); |
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.
53bc096
to
038ff12
Compare
Is changed to use GetAddon |
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.
Thanks! Merge when ready
This reverts commit 8bd7213.
On last changes comes the problem that a addon install who was not present
before has not worked.
This comes from a try to disable a addon who is not present and brought a
false.
With them becomes before checked that a addon is present, otherwise is this
step ignored.
Related to #12473 (review)
Description
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of change
Checklist: