Added feedback on opening link

This commit is contained in:
Mark Qvist 2023-02-04 12:03:46 +01:00
parent 78106b3f8c
commit 71ff0f9bcd

View File

@ -51,7 +51,7 @@ class BrowserFrame(urwid.Frame):
RNS.log("Error while setting up cursor timeout. The contained exception was: "+str(e), RNS.LOG_ERROR) RNS.log("Error while setting up cursor timeout. The contained exception was: "+str(e), RNS.LOG_ERROR)
return super(BrowserFrame, self).keypress(size, key) return super(BrowserFrame, self).keypress(size, key)
else: else:
return super(BrowserFrame, self).keypress(size, key) return super(BrowserFrame, self).keypress(size, key)
@ -175,6 +175,7 @@ class Browser:
if destination_type == "nomadnetwork.node": if destination_type == "nomadnetwork.node":
if self.status >= Browser.DISCONECTED: if self.status >= Browser.DISCONECTED:
RNS.log("Browser handling link to: "+str(link_target), RNS.LOG_DEBUG) RNS.log("Browser handling link to: "+str(link_target), RNS.LOG_DEBUG)
self.browser_footer = urwid.Text("Opening link to: "+str(link_target))
try: try:
self.retrieve_url(link_target) self.retrieve_url(link_target)
except Exception as e: except Exception as e: