Made it possible to open torrent options with 'o' in detail view

This commit is contained in:
Asmageddon 2012-05-28 21:06:22 +02:00
parent 24d801d18a
commit 8678121210

View File

@ -49,7 +49,7 @@ from add_util import add_torrent
from input_popup import InputPopup
import format_utils
from torrent_actions import torrent_actions_popup
from torrent_actions import torrent_actions_popup, ACTION
try:
import curses
@ -674,6 +674,9 @@ class TorrentDetail(BaseMode, component.Component):
elif chr(c) == 'a':
torrent_actions_popup(self,[self.torrentid],details=False)
return
elif chr(c) == 'o':
torrent_actions_popup(self,[self.torrentid],action=ACTION.TORRENT_OPTIONS)
return
elif chr(c) == 'h':
self.popup = Popup(self,"Help",init_lines=self.__help_lines)