mirror of
https://github.com/markqvist/Sideband.git
synced 2025-07-23 06:50:53 -04:00
Added exit screen. Disabled overscroll to mitigate KivyMD bug (disappearing list entries due to extreme overscroll. Added debug log option.
This commit is contained in:
parent
cdd854c55a
commit
79df28a77a
3 changed files with 79 additions and 3 deletions
|
@ -1,4 +1,5 @@
|
|||
import RNS
|
||||
import time
|
||||
|
||||
from kivy.metrics import dp
|
||||
from kivy.uix.boxlayout import BoxLayout
|
||||
|
@ -55,6 +56,8 @@ class Conversations():
|
|||
self.app.sideband.setstate("app.flags.new_conversations", False)
|
||||
|
||||
def update_widget(self):
|
||||
us = time.time()
|
||||
RNS.log("Updating conversation list widgets", RNS.LOG_DEBUG)
|
||||
if self.list == None:
|
||||
self.list = MDList()
|
||||
|
||||
|
@ -230,5 +233,7 @@ class Conversations():
|
|||
self.added_item_dests.append(context_dest)
|
||||
self.list.add_widget(item)
|
||||
|
||||
RNS.log("Updated conversation list widgets in "+RNS.prettytime(time.time()-us), RNS.LOG_DEBUG)
|
||||
|
||||
def get_widget(self):
|
||||
return self.list
|
Loading…
Add table
Add a link
Reference in a new issue