Use current_idx api call
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
This commit is contained in:
parent
6b718b0fbf
commit
3689b2cba3
|
@ -64,7 +64,7 @@ class BaseController:
|
|||
raise urwid.ExitMainLoop()
|
||||
|
||||
def header_hotkeys(self, key):
|
||||
if key in ['esc'] and Routes.current_route_idx != 0:
|
||||
if key in ['esc'] and Routes.current_idx() != 0:
|
||||
Routes.prev()
|
||||
current_route = Routes.current()
|
||||
current_route(self).show()
|
||||
|
|
Loading…
Reference in New Issue