mirror of
https://github.com/markqvist/NomadNet.git
synced 2026-11-30 03:46:39 -05:00
Persist directory to disk for every user modification
This commit is contained in:
parent
6df7feffe6
commit
ebfa6484a2
5 changed files with 11 additions and 4 deletions
|
|
@ -294,9 +294,6 @@ class ConversationsDisplay():
|
|||
self.app.directory.remember(entry)
|
||||
|
||||
new_conversation = nomadnet.Conversation(source_hash_text, nomadnet.NomadNetworkApp.get_shared_instance(), initiator=True)
|
||||
|
||||
if not RNS.Transport.has_path(source_hash):
|
||||
RNS.Transport.request_path(source_hash)
|
||||
|
||||
self.update_conversation_list()
|
||||
|
||||
|
|
|
|||
|
|
@ -127,6 +127,9 @@ class AnnounceInfo(urwid.WidgetWrap):
|
|||
|
||||
if is_node:
|
||||
node_ident = RNS.Identity.recall(source_hash)
|
||||
if not node_ident:
|
||||
raise KeyError("Could not recall identity for selected node")
|
||||
|
||||
op_hash = RNS.Destination.hash_from_name_and_identity("lxmf.delivery", node_ident)
|
||||
op_str = self.app.directory.simplest_display_str(op_hash)
|
||||
|
||||
|
|
@ -607,6 +610,8 @@ class ExceptionHandlingListBox(IndicativeListBox):
|
|||
nomadnet.NomadNetworkApp.get_shared_instance().ui.main_display.frame.set_focus("header")
|
||||
elif key == "down":
|
||||
nomadnet.NomadNetworkApp.get_shared_instance().ui.main_display.sub_displays.network_display.left_pile.set_focus(1)
|
||||
else:
|
||||
RNS.log("An error occurred while processing an interface event. The contained exception was: "+str(e), RNS.LOG_ERROR)
|
||||
|
||||
|
||||
class KnownNodes(urwid.WidgetWrap):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue