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
commit 8678121210

View file

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