Show the details window on double click instead of single click

This commit is contained in:
Artem Glebov 2013-04-16 11:54:07 +03:00
commit 832c3a0b83

View file

@ -202,8 +202,13 @@ class TransmissionGUI(xbmcgui.WindowXMLDialog):
except err:
xbmcgui.Dialog().ok(_(2), _(9001))
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')))