Kodi Community Forum

Full Version: Is there a visible condition for existing addons?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way to use visible conditions base don whether or not an addon is installed?

Basically, I want to show something but only if the user has a particular addon installed.
system.hasaddon()

ie

PHP Code:
<visible>system.hasaddon(plugin.video.apple.movie.trailers.lite)</visible
Hitcher Wrote:system.hasaddon()

ie

PHP Code:
<visible>system.hasaddon(plugin.video.apple.movie.trailers.lite)</visible

Always coming through, thanks Hitcher!
You couldnt possibly tell me how to disable a button (not hide it)?

Also, I dont think this is working. It always returns true.
igotdvds Wrote:You couldnt possibly tell me how to disable a button (not hide it)?

Also, I dont think this is working. It always returns true.

From my tests addons installed via the repo the system.hasadoon condition works, but addons installed manually will always return true...
Seems like it could be related to this -
mcborzu Wrote:Alright tried again, just want to 2x:

It seems to work only if addon is installed via addon manager correct? Thats how it's detecting whether or not something hasaddon

Like this works:


And if I uninstall the addon via addon repo then the setting disappears like expected. So far this doesn't work:


That is because I manually installed it, since the addon is not in repo yet, correct?
mcborzu Wrote:From my tests addons installed via the repo the system.hasadoon condition works, but addons installed manually will always return true...

Well crap, my plan is squashed then. oh well. Sad
Well, this seems like it should be reported as a bug, so you can always wait it out or submit a patch