mirror of
https://github.com/markqvist/Sideband.git
synced 2025-11-29 19:56:39 -05:00
Various UI improvements
This commit is contained in:
parent
2eec1d0a50
commit
9a11bfded2
4 changed files with 20 additions and 20 deletions
|
|
@ -5472,11 +5472,17 @@ class SidebandCore():
|
|||
elif self.message_router.propagation_transfer_state == LXMF.LXMRouter.PR_FAILED:
|
||||
return "Sync failed"
|
||||
elif self.message_router.propagation_transfer_state == LXMF.LXMRouter.PR_COMPLETE:
|
||||
new_msgs = self.message_router.propagation_transfer_last_result
|
||||
msgs_dld = self.message_router.propagation_transfer_last_result
|
||||
duplicates = self.message_router.propagation_transfer_last_duplicates or 0
|
||||
new_msgs = msgs_dld-duplicates
|
||||
nms = "" if new_msgs == 1 else "s"
|
||||
dms = "" if duplicates == 1 else "s"
|
||||
if new_msgs == 0:
|
||||
return "Done, no new messages"
|
||||
if duplicates == 0: return f"Done, no new messages"
|
||||
else: return f"Done, no new messages\nDiscarded {duplicates} existing message{dms}"
|
||||
else:
|
||||
return "Downloaded "+str(new_msgs)+" messages"
|
||||
if duplicates == 0: return f"Downloaded {new_msgs} new message{nms}"
|
||||
else: return f"Downloaded {new_msgs} new message{nms}\nDiscarded {duplicates} existing message{dms}"
|
||||
else:
|
||||
return "Unknown"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue