mirror of
https://github.com/correl/Transmission-XBMC.git
synced 2024-11-21 19:18:41 +00:00
Merge pull request #12 from aglebov/close-button-details
Added close button to the torrent info dialog
This commit is contained in:
commit
6b8374696d
2 changed files with 15 additions and 1 deletions
|
@ -258,6 +258,7 @@ class TorrentInfoGUI(xbmcgui.WindowXMLDialog):
|
|||
self.close()
|
||||
pass
|
||||
def onClick(self, controlID):
|
||||
pass
|
||||
if controlID == 111:
|
||||
self.close()
|
||||
def onFocus(self, controlID):
|
||||
pass
|
||||
|
|
|
@ -140,5 +140,18 @@
|
|||
</control>
|
||||
</focusedlayout>
|
||||
</control>
|
||||
<control type="button" id="111">
|
||||
<description>Close Window button</description>
|
||||
<posx>850</posx>
|
||||
<posy>0</posy>
|
||||
<width>64</width>
|
||||
<height>32</height>
|
||||
<label>-</label>
|
||||
<font>-</font>
|
||||
<onclick>PreviousMenu</onclick>
|
||||
<texturefocus>DialogCloseButton-focus.png</texturefocus>
|
||||
<texturenofocus>DialogCloseButton.png</texturenofocus>
|
||||
<visible>system.getbool(input.enablemouse)</visible>
|
||||
</control>
|
||||
</controls>
|
||||
</window>
|
||||
|
|
Loading…
Reference in a new issue