mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-12-16 08:53:49 -05:00
Merge pull request #85 from RFnexus/master
Some checks failed
Create and publish a Docker image / build-and-push-image (push) Has been cancelled
Some checks failed
Create and publish a Docker image / build-and-push-image (push) Has been cancelled
Strip whitespace from LXMF address and URL dialog
This commit is contained in:
commit
eafe77718f
2 changed files with 3 additions and 3 deletions
|
|
@ -697,7 +697,7 @@ class Browser:
|
||||||
|
|
||||||
def confirmed(sender):
|
def confirmed(sender):
|
||||||
try:
|
try:
|
||||||
self.retrieve_url(e_url.get_edit_text())
|
self.retrieve_url(e_url.get_edit_text().strip())
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.browser_footer = urwid.Text("Could not open link: "+str(e))
|
self.browser_footer = urwid.Text("Could not open link: "+str(e))
|
||||||
self.frame.contents["footer"] = (self.browser_footer, self.frame.options())
|
self.frame.contents["footer"] = (self.browser_footer, self.frame.options())
|
||||||
|
|
|
||||||
|
|
@ -331,7 +331,7 @@ class ConversationsDisplay():
|
||||||
existing_conversations = nomadnet.Conversation.conversation_list(self.app)
|
existing_conversations = nomadnet.Conversation.conversation_list(self.app)
|
||||||
|
|
||||||
display_name = e_name.get_edit_text()
|
display_name = e_name.get_edit_text()
|
||||||
source_hash_text = e_id.get_edit_text()
|
source_hash_text = e_id.get_edit_text().strip()
|
||||||
source_hash = bytes.fromhex(source_hash_text)
|
source_hash = bytes.fromhex(source_hash_text)
|
||||||
trust_level = DirectoryEntry.UNTRUSTED
|
trust_level = DirectoryEntry.UNTRUSTED
|
||||||
if r_unknown.state == True:
|
if r_unknown.state == True:
|
||||||
|
|
@ -412,7 +412,7 @@ class ConversationsDisplay():
|
||||||
try:
|
try:
|
||||||
local_delivery_signal = "local_delivery_occurred"
|
local_delivery_signal = "local_delivery_occurred"
|
||||||
duplicate_signal = "duplicate_lxm"
|
duplicate_signal = "duplicate_lxm"
|
||||||
lxm_uri = e_uri.get_edit_text()
|
lxm_uri = e_uri.get_edit_text().strip()
|
||||||
|
|
||||||
ingest_result = self.app.message_router.ingest_lxm_uri(
|
ingest_result = self.app.message_router.ingest_lxm_uri(
|
||||||
lxm_uri,
|
lxm_uri,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue