Is there a visible condition for existing addons?
#1
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.
Image
To learn more, click here.
Reply
#2
system.hasaddon()

ie

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

ie

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

Always coming through, thanks Hitcher!
Image
To learn more, click here.
Reply
#4
You couldnt possibly tell me how to disable a button (not hide it)?

Also, I dont think this is working. It always returns true.
Image
To learn more, click here.
Reply
#5
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...
Image

Check out The Carmichael - A Skin For XBMC

Check out Night - A Skin For XBMC

Check out Unfinished - A Skin For XBMC
Reply
#6
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?
Reply
#7
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
Image
To learn more, click here.
Reply
#8
Well, this seems like it should be reported as a bug, so you can always wait it out or submit a patch
Reply

Logout Mark Read Team Forum Stats Members Help
Is there a visible condition for existing addons?0