mirror of
https://github.com/bbara04/Purefin.git
synced 2026-03-31 17:10:08 +02:00
feat: Allow offline mode in Purefin
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user