Show the details windon on a double click instead of a single click

This commit is contained in:
Artem Glebov 2013-03-16 14:12:10 +03:00
parent 50e9e2f286
commit 6a6dae632d

View file

@ -176,8 +176,13 @@ class TransmissionGUI(xbmcgui.WindowXMLDialog):
if (controlID == 117):
# Exit button
self.close()
if (controlID == 120):
# Do nothing, just select the item
pass
def onDoubleClick(self, controlID):
if (controlID == 120):
# A torrent was chosen, show details
list = self.getControl(120)
item = list.getSelectedItem()
w = TorrentInfoGUI("script-Transmission-details.xml", __settings__.getAddonInfo('path') ,"Default")
w.setTorrent(self.transmission, int(item.getProperty('TorrentID')))