Fixed sync progress bar display

This commit is contained in:
Mark Qvist 2021-10-12 21:12:32 +02:00
parent 19fb70fb3f
commit 14eb35f7de
2 changed files with 3 additions and 0 deletions

View File

@ -243,6 +243,8 @@ class NomadNetworkApp:
return True
elif self.message_router.propagation_transfer_state == LXMF.LXMRouter.PR_REQUEST_SENT:
return True
elif self.message_router.propagation_transfer_state == LXMF.LXMRouter.PR_RECEIVING:
return True
elif self.message_router.propagation_transfer_state == LXMF.LXMRouter.PR_RESPONSE_RECEIVED:
return True
elif self.message_router.propagation_transfer_state == LXMF.LXMRouter.PR_COMPLETE:

View File

@ -352,6 +352,7 @@ class ConversationsDisplay():
def cancel_sync(sender):
self.app.cancel_lxmf_sync()
self.update_sync_dialog()
cancel_button = urwid.Button("Close", on_press=dismiss_dialog)
sync_progress = SyncProgressBar("progress_empty" , "progress_full", current=self.app.get_sync_progress(), done=1.0, satt=None)