feat: Allow unlocking excluded modules (#2180)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
James Rich 2025-06-20 23:19:51 +00:00 committed by GitHub
parent 8639228721
commit bcc3a0f107
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 100 additions and 15 deletions

View file

@ -206,7 +206,18 @@ class UIViewModel @Inject constructor(
private val _lastTraceRouteTime = MutableStateFlow<Long?>(null)
val lastTraceRouteTime: StateFlow<Long?> = _lastTraceRouteTime.asStateFlow()
val clientNotification: StateFlow<MeshProtos.ClientNotification?> = radioConfigRepository.clientNotification
private val _excludedModulesUnlocked = MutableStateFlow(false)
val excludedModulesUnlocked: StateFlow<Boolean> = _excludedModulesUnlocked.asStateFlow()
fun unlockExcludedModules() {
viewModelScope.launch {
_excludedModulesUnlocked.value = true
}
}
val clientNotification: StateFlow<MeshProtos.ClientNotification?> =
radioConfigRepository.clientNotification
fun clearClientNotification(notification: MeshProtos.ClientNotification) {
radioConfigRepository.clearClientNotification()
meshServiceNotifications.clearClientNotification(notification)