feat: Allow offline mode in Purefin

This commit is contained in:
2026-02-22 15:41:08 +01:00
parent 4ecb402e69
commit 9ec09a0e94
8 changed files with 121 additions and 6 deletions

View File

@@ -131,7 +131,13 @@ class HomePageViewModel @Inject constructor(
)
init {
viewModelScope.launch { appContentRepository.ensureReady() }
viewModelScope.launch {
try {
appContentRepository.ensureReady()
} catch (e: Exception) {
// State is already set to Error by ensureReady; don't crash the app
}
}
}
fun onLibrarySelected(id: UUID, name: String) {