mirror of
https://github.com/correl/Transmission-XBMC.git
synced 2025-01-06 19:08:53 +00:00
Show the details window on double click instead of single click
This commit is contained in:
commit
832c3a0b83
1 changed files with 5 additions and 0 deletions
|
@ -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')))
|
||||
|
|
Loading…
Reference in a new issue