mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
don't enter torrentdetails if nothing is selected
This commit is contained in:
parent
b35875e300
commit
78ea5c9bd3
1 changed files with 7 additions and 5 deletions
|
@ -606,11 +606,13 @@ class AllTorrents(BaseMode):
|
|||
elif c == curses.KEY_RIGHT:
|
||||
# We enter a new mode for the selected torrent here
|
||||
if not self.marked:
|
||||
component.stop(["AllTorrentsStateUpdater"])
|
||||
self.stdscr.clear()
|
||||
td = TorrentDetail(self,self._current_torrent_id(),self.stdscr,self.encoding)
|
||||
component.get("ConsoleUI").set_mode(td)
|
||||
return
|
||||
tid = self._current_torrent_id()
|
||||
if tid:
|
||||
component.stop(["AllTorrentsStateUpdater"])
|
||||
self.stdscr.clear()
|
||||
td = TorrentDetail(self,self._current_torrent_id(),self.stdscr,self.encoding)
|
||||
component.get("ConsoleUI").set_mode(td)
|
||||
return
|
||||
|
||||
# Enter Key
|
||||
elif c == curses.KEY_ENTER or c == 10:
|
||||
|
|
Loading…
Add table
Reference in a new issue