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()