oops! forgot one

This commit is contained in:
Chloe committed 2025-12-22 14:21:17 -07:00
1 parent b4dd1567c9
commit 47d216b486
1 file changed
+8
@@ -84,6 +84,14 @@ class LaunchViewModel(private val application: Application): ViewModel() {
data class Cancelled(val reason: LaunchCancelReason, val inProgress: Boolean = false) : LaunchUIState()
data object Working : LaunchUIState()
data object Ready : LaunchUIState()
fun isInProgress() = when (this) {
is Ready,
is Working,
is Updating,
is UpdateCheck -> true
else -> false
}
}
private val _uiState: MutableStateFlow<LaunchUIState>