From 5a73efa9dc1d7b45d8d992933e756932337d6406 Mon Sep 17 00:00:00 2001 From: kingbri Date: Tue, 28 Mar 2023 11:53:49 -0400 Subject: [PATCH] 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 --- Ferrite/Views/ComponentViews/Plugin/PluginAggregateView.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Ferrite/Views/ComponentViews/Plugin/PluginAggregateView.swift b/Ferrite/Views/ComponentViews/Plugin/PluginAggregateView.swift index 08c2ab6..2f4284e 100644 --- a/Ferrite/Views/ComponentViews/Plugin/PluginAggregateView.swift +++ b/Ferrite/Views/ComponentViews/Plugin/PluginAggregateView.swift @@ -78,6 +78,7 @@ struct PluginAggregateView: View { } .inlinedList(inset: 0) .listStyle(.insetGrouped) + .id(UUID()) .backport.onAppear { pluginsEmpty = installedPlugins.isEmpty }