From e5472ebd27cf6a974be2d3c7d2fd800cc47561cd Mon Sep 17 00:00:00 2001 From: Artem Glebov Date: Sat, 9 Mar 2013 11:44:03 +0300 Subject: [PATCH] Added close button to the torrent info dialog --- resources/lib/gui.py | 3 ++- .../Default/720p/script-Transmission-details.xml | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/resources/lib/gui.py b/resources/lib/gui.py index ab152a1..408a080 100644 --- a/resources/lib/gui.py +++ b/resources/lib/gui.py @@ -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 diff --git a/resources/skins/Default/720p/script-Transmission-details.xml b/resources/skins/Default/720p/script-Transmission-details.xml index 3e6c828..4631116 100644 --- a/resources/skins/Default/720p/script-Transmission-details.xml +++ b/resources/skins/Default/720p/script-Transmission-details.xml @@ -133,5 +133,18 @@ + + Close Window button + 850 + 0 + 64 + 32 + + - + PreviousMenu + DialogCloseButton-focus.png + DialogCloseButton.png + system.getbool(input.enablemouse) +