2019-09-13, 19:29
I have panel with container that displays list of addons that can be installed based on the category. THe addons are displayed without issue, however when I click on the addon it does not open window to install. Can someone tell me where I went wrong:
See image here:
See image here:
xml:<control type="panel" id="161">
<top>180</top>
<left>0</left>
<onright>50</onright>
<onleft>9000</onleft>
<height>250</height>
<include>SettingsRows</include>
<content>
<item>
<label>$LOCALIZE[20244]</label>
<icon>DefaultAddonAndroid.png</icon>
<property name="AppsTarget">programs</property>
<property name="AppsContent">plugin://plugin.program.aptoide/?content_type=video/</property>
<property name="AppsSortBy">lastused</property>
<onclick>ActivateWindow(10040,"addons://all/xbmc.addon.executable",return)</onclick>
</item>
<item>
<label>$LOCALIZE[1037]</label>
<icon>DefaultAddonVideo.png</icon>
<property name="AppsTarget">videos</property>
<property name="AppsContent">addons://all/xbmc.addon.video</property>
<property name="AppsSortBy">lastused</property>
<onclick>ActivateWindow(10040,"addons://all/xbmc.addon.video",return)</onclick>
</item>
<item>
<label>$LOCALIZE[1038]</label>
<icon>DefaultAddonMusic.png</icon>
<property name="AppsTarget">music</property>
<property name="AppsContent">addons://all/xbmc.addon.audio/</property>
<property name="AppsSortBy">lastused</property>
<onclick>ActivateWindow(10040,"addons://all/xbmc.addon.audio",return)</onclick>
</item>
<item>
<label>$LOCALIZE[1039]</label>
<icon>DefaultAddonPicture.png</icon>
<property name="AppsTarget">pictures</property>
<property name="AppsContent">addons://all/xbmc.addon.image/</property>
<property name="AppsSortBy">lastused</property>
<onclick>ActivateWindow(10040,"addons://all/xbmc.addon.image",return)</onclick>
</item>
<item>
<label>$LOCALIZE[35049]</label>
<icon>defaultgameaddons.png</icon>
<property name="AppsTarget">games</property>
<property name="AppsContent">addons://all/category.gameaddons/</property>
<property name="AppsSortBy">lastused</property>
<onclick>ActivateWindow(10040,"addons://all/category.gameaddons",return)</onclick>
</item>
<item>
<label>$LOCALIZE[1043]</label>
<icon>DefaultAddonProgram.png</icon>
<property name="AppsTarget">programs</property>
<property name="AppsContent">addons://all/xbmc.addon.executable/</property>
<property name="AppsSortBy">lastused</property>
<onclick>ActivateWindow(10040,"addons://all/xbmc.addon.executable",return)</onclick>
</item>
<item>
<label>Context Menu</label>
<icon>defaultaddoncontextitem.png</icon>
<property name="AppsTarget">context</property>
<property name="AppsContent">addons://all/kodi.context.item/</property>
<property name="AppsSortBy">lastused</property>
<onclick>ActivateWindow(10040,"addons://all/kodi.context.item",return)</onclick>
</item>
<item>
<label>Information providers</label>
<icon>defaultaddoninfoprovider.png</icon>
<property name="AppsTarget">infoproviders</property>
<property name="AppsContent">addons://all/category.infoprovider/</property>
<property name="AppsSortBy">lastused</property>
<onclick>ActivateWindow(10040,"addons://all/category.infoproviders",return)</onclick>
</item>
<item>
<label>Lyrics</label>
<icon>defaultaddonlyrics.png</icon>
<property name="AppsTarget">lyrics</property>
<property name="AppsContent">addons://all/xbmc.python.lyrics/</property>
<property name="AppsSortBy">lastused</property>
<onclick>ActivateWindow(10040,"addons://all/category.infoproviders",return)</onclick>
</item>
<item>
<label>Look and feel</label>
<icon>defaultaddonlyrics.png</icon>
<property name="AppsTarget">lookfeel</property>
<property name="AppsContent">addons://all/category.lookandfeel/</property>
<property name="AppsSortBy">lastused</property>
<onclick>ActivateWindow(10040,"addons://all/xbmc.python.lyrics",return)</onclick>
</item>
<item>
<label>Services</label>
<icon>settings.png</icon>
<property name="AppsTarget">services</property>
<property name="AppsContent">addons://all/xbmc.service/</property>
<property name="AppsSortBy">lastused</property>
<onclick>ActivateWindow(10040,"addons://all/xbmc.service",return)</onclick>
</item>
<item>
<label>Subtitles</label>
<icon>defaultaddonsubtitles.png</icon>
<property name="AppsTarget">subtitles</property>
<property name="AppsContent">addons://all/xbmc.subtitle.module/</property>
<property name="AppsSortBy">lastused</property>
<onclick>ActivateWindow(10040,"addons://all/xbmc.subtitle.module",return)</onclick>
</item>
<item>
<label>Weather</label>
<icon>defaultaddonweather.png</icon>
<property name="AppsTarget">weather</property>
<property name="AppsContent">addons://all/xbmc.python.weather/</property>
<property name="AppsSortBy">lastused</property>
<onclick>ActivateWindow(10040,"addons://all/xbmc.python.weather",return)</onclick>
</item>
<item>
<label>Web Interface</label>
<icon>defaultaddonwebskin.png</icon>
<property name="AppsTarget">weather</property>
<property name="AppsContent">addons://all/xbmc.webinterface</property>
<property name="AppsSortBy">lastused</property>
<onclick>ActivateWindow(10040,"addons://all/xbmc.webinterface",return)</onclick>
</item>
<item>
<label>$LOCALIZE[10040]</label>
<icon>DefaultAddon.png</icon>
<property name="AppsTarget"></property>
<property name="AppsContent">addons://user/all/</property>
<property name="AppsSortBy">lastupdated</property>
<onclick>ActivateWindow(AddonBrowser,return)</onclick>
</item>
</content>
</control>
<control type="image" id="163">
<visible>Container(164).IsUpdating</visible>
<description>Busy animation</description>
<top>0</top>
<width>100%</width>
<height>150</height>
<alignx>center</alignx>
<texture colordiffuse="button_focus">spinner.png</texture>
<aspectratio>keep</aspectratio>
<animation effect="rotate" start="360" end="0" center="auto" time="3000" loop="true" condition="true">conditional</animation>
</control>
<control type="panel" id="164">
<left>0</left>
<onright>164</onright>
<onleft>164</onleft>
<height>315</height>
<top>40</top>
<include>SettingsRows_Apps4</include>
<orientation>horizontal</orientation>
<content target="$INFO[Container(161).ListItem.Property(AppsTarget)]" sortby="$INFO[Container(161).ListItem.Property(AppsSortBy)]" sortorder="descending">$INFO[Container(161).ListItem.Property(AppsContent)]</content>
</control>