refactor: remove unused initialization logic in AppViewModel

This commit is contained in:
2026-03-31 20:53:29 +02:00
parent 74c532140e
commit 3daf45a421

View File

@@ -152,16 +152,6 @@ class AppViewModel @Inject constructor(
initialValue = emptyMap()
)
init {
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) {
viewModelScope.launch {
navigationManager.navigate(Route.LibraryRoute(library = LibraryDto(id = id, name = name)))