mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-08-03 12:26:03 -04:00
Urwid bug mitigation
This commit is contained in:
parent
fe0a3b6a3e
commit
1c1ddab28f
4 changed files with 30 additions and 4 deletions
|
@ -125,7 +125,8 @@ class MainDisplay():
|
|||
def update_active_sub_display(self):
|
||||
self.frame.contents["body"] = (self.sub_displays.active().widget, None)
|
||||
self.update_active_shortcuts()
|
||||
self.app.ui.main_display.request_redraw(extra_delay=0.0)
|
||||
# TODO: Remove when new mitigation has been tested
|
||||
# self.app.ui.main_display.request_redraw(extra_delay=0.0)
|
||||
|
||||
def update_active_shortcuts(self):
|
||||
self.frame.contents["footer"] = (self.sub_displays.active().shortcuts().widget, None)
|
||||
|
|
|
@ -107,7 +107,8 @@ class AnnounceInfo(urwid.WidgetWrap):
|
|||
self.parent.left_pile.contents[0] = (self.parent.announce_stream_display, options)
|
||||
|
||||
def connect(sender):
|
||||
self.app.ui.main_display.request_redraw(extra_delay=0.15)
|
||||
# TODO: Remove when new mitigation has been tested
|
||||
# self.app.ui.main_display.request_redraw(extra_delay=0.75)
|
||||
self.parent.browser.retrieve_url(RNS.hexrep(source_hash, delimit=False))
|
||||
show_announce_stream(None)
|
||||
|
||||
|
@ -434,7 +435,8 @@ class KnownNodeInfo(urwid.WidgetWrap):
|
|||
self.parent.left_pile.contents[0] = (self.parent.known_nodes_display, options)
|
||||
|
||||
def connect(sender):
|
||||
self.app.ui.main_display.request_redraw(extra_delay=0.15)
|
||||
# TODO: Remove when new mitigation has been tested
|
||||
# self.app.ui.main_display.request_redraw(extra_delay=0.75)
|
||||
self.parent.browser.retrieve_url(RNS.hexrep(source_hash, delimit=False))
|
||||
show_known_nodes(None)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue