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