Plugins/Library: Add refreshable
Allow using pull to refresh for fetching plugins and information from debrid cloud. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
parent
d918039810
commit
b2616bdeb7
2 changed files with 6 additions and 0 deletions
|
|
@ -29,6 +29,9 @@ struct DebridCloudView: View {
|
|||
.task {
|
||||
await debridManager.fetchDebridCloud()
|
||||
}
|
||||
.refreshable {
|
||||
await debridManager.fetchDebridCloud()
|
||||
}
|
||||
.onChange(of: debridManager.selectedDebridType) { newType in
|
||||
if newType != nil {
|
||||
Task {
|
||||
|
|
|
|||
|
|
@ -73,6 +73,9 @@ struct PluginsView: View {
|
|||
.onDisappear {
|
||||
checkedForPlugins = false
|
||||
}
|
||||
.refreshable {
|
||||
await pluginManager.fetchPluginsFromUrl()
|
||||
}
|
||||
.navigationTitle("Plugins")
|
||||
.searchable(text: $searchText, placement: .navigationBarDrawer(displayMode: .always))
|
||||
.autocorrectionDisabled(!autocorrectSearch)
|
||||
|
|
|
|||
Loading…
Reference in a new issue