Updated nomadnet to use Urwid 2.4.2

This commit is contained in:
Mark Qvist 2024-01-15 19:40:01 +01:00
parent 910e527cc7
commit 0ed4e09b82
4 changed files with 10 additions and 8 deletions

View file

@ -116,6 +116,7 @@ class MainDisplay():
def show_log(self, user_data):
self.sub_displays.active_display = self.sub_displays.log_display
self.sub_displays.log_display.show()
self.update_active_sub_display()
def show_guide(self, user_data):
@ -125,6 +126,8 @@ class MainDisplay():
def update_active_sub_display(self):
self.frame.contents["body"] = (self.sub_displays.active().widget, None)
self.update_active_shortcuts()
if self.sub_displays.active_display != self.sub_displays.log_display:
self.sub_displays.log_display.kill()
def update_active_shortcuts(self):
self.frame.contents["footer"] = (self.sub_displays.active().shortcuts().widget, None)