Debrid: Fix UI updates for IA

Hook to the published variable to push updates.

Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
kingbri 2024-06-09 20:28:54 -04:00 committed by Brian Dashore
parent 0ad2ba5cf2
commit 8755009ad4
2 changed files with 1 additions and 8 deletions

View file

@ -17,16 +17,10 @@ struct DebridLabelView: View {
var body: some View {
Tag(
name: debridSource.abbreviation,
color: tagColor,
color: getTagColor(),
horizontalPadding: 5,
verticalPadding: 3
)
.onAppear {
tagColor = getTagColor()
}
.onChange(of: debridSource.IAValues) { _ in
tagColor = getTagColor()
}
}
func getTagColor() -> Color {

View file

@ -40,6 +40,5 @@ struct SelectedDebridFilterView<Content: View>: View {
} label: {
label
}
.id(debridManager.selectedDebridSource?.id)
}
}