Plugins: Fix crash on iOS 14

When installing an action and going back and forth to a different tab,
the app crashes on iOS 14.

Fix this by refreshing the list without worrying about previous
state. This makes Ferrite more efficient in terms of plugin fetching.

Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
kingbri 2023-03-28 11:53:49 -04:00
parent 371281118f
commit 5a73efa9dc

View file

@ -78,6 +78,7 @@ struct PluginAggregateView<P: Plugin, PJ: PluginJson>: View {
}
.inlinedList(inset: 0)
.listStyle(.insetGrouped)
.id(UUID())
.backport.onAppear {
pluginsEmpty = installedPlugins.isEmpty
}