Skip to content
Snippets Groups Projects
Commit 03a1fef7 authored by Kamal Bramwell's avatar Kamal Bramwell
Browse files

Update progress

parent 7898d3f7
No related branches found
No related tags found
No related merge requests found
......@@ -70,8 +70,12 @@ class Crust private constructor(
private fun backup() {
scope.launch {
updateProgress()
crustApi.uploadBackup(backupService.backupFilePath)
updateProgress(25)
crustApi.uploadBackup(backupService.backupFilePath).run {
when {
isSuccess -> updateProgress(100)
isFailure -> updateProgress(error = exceptionOrNull())
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment