mirror of
https://github.com/correl/Transmission-XBMC.git
synced 2024-11-21 19:18:41 +00:00
Added close button to the torrent info dialog
This commit is contained in:
parent
50e9e2f286
commit
e5472ebd27
2 changed files with 15 additions and 1 deletions
|
@ -245,6 +245,7 @@ class TorrentInfoGUI(xbmcgui.WindowXMLDialog):
|
|||
self.close()
|
||||
pass
|
||||
def onClick(self, controlID):
|
||||
pass
|
||||
if controlID == 111:
|
||||
self.close()
|
||||
def onFocus(self, controlID):
|
||||
pass
|
||||
|
|
|
@ -133,5 +133,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