mirror of
https://github.com/markqvist/Sideband.git
synced 2026-11-23 00:16:24 -05:00
Added ability to allow transfers of LXMs larger than 1 megabyte
This commit is contained in:
parent
b87b80f152
commit
bfcff07025
4 changed files with 34 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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+" "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue