Skip to content

Commit

Permalink
Debrid: Fix UI updates for IA
Browse files Browse the repository at this point in the history
Hook to the published variable to push updates.

Signed-off-by: kingbri <[email protected]>
  • Loading branch information
bdashore3 committed Jun 10, 2024
1 parent 67300c4 commit 599b00e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
8 changes: 1 addition & 7 deletions Ferrite/Views/ComponentViews/Debrid/DebridLabelView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,5 @@ struct SelectedDebridFilterView<Content: View>: View {
} label: {
label
}
.id(debridManager.selectedDebridSource?.id)
}
}

0 comments on commit 599b00e

Please sign in to comment.