Skip to content

Commit

Permalink
version
Browse files Browse the repository at this point in the history
  • Loading branch information
GrakovNe committed Nov 12, 2024
1 parent e5b7e03 commit ccfb140
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ fun CommonSettingsComposable(viewModel: SettingsViewModel) {

val context = LocalContext.current

SideEffect {
viewModel.fetchLibraries()
}

if (host?.isNotEmpty() == true) {
Row(
modifier = Modifier
Expand Down Expand Up @@ -91,10 +95,6 @@ fun CommonSettingsComposable(viewModel: SettingsViewModel) {
}

if (preferredLibraryExpanded && libraries.isNotEmpty()) {
SideEffect {
viewModel.fetchLibraries()
}

CommonSettingsItemComposable(
items = libraries.map { CommonSettingsItem(it.id, it.title, it.type.provideIcon()) },
selectedItem = preferredLibrary?.let { CommonSettingsItem(it.id, it.title, it.type.provideIcon()) },
Expand Down

0 comments on commit ccfb140

Please sign in to comment.