Various UI improvements

This commit is contained in:
Mark Qvist 2025-11-02 02:57:51 +01:00
parent 2eec1d0a50
commit 9a11bfded2
4 changed files with 20 additions and 20 deletions

View file

@ -250,7 +250,7 @@ class Conversations():
self.app = app
self.context_dests = []
self.added_item_dests = []
# self.list = None
self.list = None
self.conversation_list = None
self.ids = None
@ -268,17 +268,6 @@ class Conversations():
self.update()
def reload(self):
self.clear_list()
self.update()
def clear_list(self):
if self.list != None:
self.list.clear_widgets()
self.context_dests = []
self.added_item_dests = []
def update(self):
self.context_dests = self.app.sideband.list_conversations(conversations=self.app.include_conversations, objects=self.app.include_objects)
@ -435,6 +424,7 @@ class Conversations():
RNS.log("Updating conversation list widgets", RNS.LOG_DEBUG)
if self.conversation_list == None:
self.conversation_list = ConversationList()
self.list = self.conversation_list
self.ids.conversation_list_container.add_widget(self.conversation_list)
self.update_conversation_list()

View file

@ -337,15 +337,15 @@ class Messages():
if prg <= 0.00:
stamp_cost = self.app.sideband.get_lxm_stamp_cost(msg["hash"])
prop_cost = self.app.sideband.get_lxm_propagation_cost(msg["hash"])
if stamp_cost:
if stamp_cost and prop_cost:
sphrase = f"Generating stamps with cost {stamp_cost} and {prop_cost}"
prgstr = ""
elif stamp_cost:
sphrase = f"Generating stamp with cost {stamp_cost}"
prgstr = ""
elif prop_cost:
sphrase = f"Generating propagation stamp with cost {prop_cost}"
prgstr = ""
elif stamp_cost and prop_cost:
sphrase = f"Generating stamps with cost {stamp_cost} and {prop_cost}"
prgstr = ""
else:
sphrase = "Waiting for path"
elif prg <= 0.01: