mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 16:08:40 +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
1 changed files with 4 additions and 0 deletions
|
@ -482,6 +482,10 @@ class TorrentDetail(BaseMode, component.Component):
|
||||||
self.back_to_overview()
|
self.back_to_overview()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if not self.torrent_state:
|
||||||
|
# actions below only makes sense if there is a torrent state
|
||||||
|
return
|
||||||
|
|
||||||
# Navigate the torrent list
|
# Navigate the torrent list
|
||||||
if c == curses.KEY_UP:
|
if c == curses.KEY_UP:
|
||||||
self.file_list_up()
|
self.file_list_up()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue