Added ability to allow transfers of LXMs larger than 1 megabyte

This commit is contained in:
Mark Qvist 2024-03-19 11:56:21 +01:00
parent b87b80f152
commit bfcff07025
4 changed files with 34 additions and 2 deletions

View file

@ -1372,6 +1372,22 @@ MDScreen:
disabled: False
active: False
MDBoxLayout:
orientation: "horizontal"
size_hint_y: None
padding: [0,0,dp(24),dp(0)]
height: dp(48)
MDLabel:
text: "Limit incoming messages to 1MB"
font_style: "H6"
MDSwitch:
id: settings_lxm_limit_1mb
pos_hint: {"center_y": 0.3}
disabled: False
active: False
MDBoxLayout:
orientation: "horizontal"
size_hint_y: None

View file

@ -143,7 +143,7 @@ class Messages():
prgstr = ""
prg = self.app.sideband.get_lxm_progress(msg["hash"])
if prg != None:
prgstr = ", "+str(round(prg*100, 1))+"% progress"
prgstr = ", "+str(round(prg*100, 1))+"% done"
if msg["title"]:
titlestr = "[b]Title[/b] "+msg["title"].decode("utf-8")+"\n"
w.heading = titlestr+"[b]Sent[/b] "+txstr+"\n[b]State[/b] Sending"+prgstr+" "