Added setting resetting state on install screen

It will additionally show that download is complete rather than being stuck on loading.
This commit is contained in:
Viktor De Pasquale
2020-03-30 16:17:33 +02:00
committed by John Wu
parent 09ba4772b8
commit 6b0854749f
2 changed files with 24 additions and 8 deletions

View File

@@ -39,8 +39,7 @@ class InstallViewModel : BaseViewModel(State.LOADED) {
}
this.progress.value = progress.times(100).roundToInt()
if (this.progress.value >= 100) {
// this might cause issues if the flash activity launches on top of this sooner
// back()
state = State.LOADED
}
}
method.addOnPropertyChangedCallback {