Poke upload progress when viewing settings.

This commit is contained in:
Greyson Parrelli
2026-01-14 12:21:19 -05:00
parent 06a6f0ea0b
commit b24c4e3302
2 changed files with 6 additions and 0 deletions

View File

@@ -119,6 +119,10 @@ object ArchiveUploadProgress {
}
}
fun triggerUpdate() {
_progress.tryEmit(Unit)
}
fun cancel() {
updateState {
ArchiveUploadProgressState(

View File

@@ -89,6 +89,8 @@ class RemoteBackupsSettingsViewModel : ViewModel() {
val restoreState: StateFlow<BackupRestoreState> = _restoreState
init {
ArchiveUploadProgress.triggerUpdate()
viewModelScope.launch(Dispatchers.IO) {
val isBillingApiAvailable = AppDependencies.billingApi.getApiAvailability().isSuccess
if (isBillingApiAvailable) {