mirror of
https://github.com/markqvist/NomadNet.git
synced 2024-10-01 01:26:07 -04:00
Added feedback on opening link
This commit is contained in:
parent
78106b3f8c
commit
71ff0f9bcd
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user