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:
parent
0ad2ba5cf2
commit
8755009ad4
2 changed files with 1 additions and 8 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -40,6 +40,5 @@ struct SelectedDebridFilterView<Content: View>: View {
|
|||
} label: {
|
||||
label
|
||||
}
|
||||
.id(debridManager.selectedDebridSource?.id)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue