mirror of
https://github.com/Ferrite-iOS/Ferrite.git
synced 2026-04-21 00:42:07 +00:00
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
796cc65016
commit
4ae1966934
2 changed files with 1 additions and 8 deletions
|
|
@ -17,16 +17,10 @@ struct DebridLabelView: View {
|
||||||
var body: some View {
|
var body: some View {
|
||||||
Tag(
|
Tag(
|
||||||
name: debridSource.abbreviation,
|
name: debridSource.abbreviation,
|
||||||
color: tagColor,
|
color: getTagColor(),
|
||||||
horizontalPadding: 5,
|
horizontalPadding: 5,
|
||||||
verticalPadding: 3
|
verticalPadding: 3
|
||||||
)
|
)
|
||||||
.onAppear {
|
|
||||||
tagColor = getTagColor()
|
|
||||||
}
|
|
||||||
.onChange(of: debridSource.IAValues) { _ in
|
|
||||||
tagColor = getTagColor()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func getTagColor() -> Color {
|
func getTagColor() -> Color {
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,5 @@ struct SelectedDebridFilterView<Content: View>: View {
|
||||||
} label: {
|
} label: {
|
||||||
label
|
label
|
||||||
}
|
}
|
||||||
.id(debridManager.selectedDebridSource?.id)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue