mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 12:34:43 +00:00
ignore key presses that only makes sense when we have a state when we don't have a state
This commit is contained in:
parent
d05352db65
commit
e992ac3eab
@ -482,6 +482,10 @@ class TorrentDetail(BaseMode, component.Component):
|
||||
self.back_to_overview()
|
||||
return
|
||||
|
||||
if not self.torrent_state:
|
||||
# actions below only makes sense if there is a torrent state
|
||||
return
|
||||
|
||||
# Navigate the torrent list
|
||||
if c == curses.KEY_UP:
|
||||
self.file_list_up()
|
||||
|
Loading…
x
Reference in New Issue
Block a user