diff --git a/Dalamud/Interface/Internal/Windows/PluginInstaller/ProfileManagerWidget.cs b/Dalamud/Interface/Internal/Windows/PluginInstaller/ProfileManagerWidget.cs index 0545b1656..6a60f6960 100644 --- a/Dalamud/Interface/Internal/Windows/PluginInstaller/ProfileManagerWidget.cs +++ b/Dalamud/Interface/Internal/Windows/PluginInstaller/ProfileManagerWidget.cs @@ -248,12 +248,13 @@ internal class ProfileManagerWidget if (ImGuiComponents.IconButton(FontAwesomeIcon.Trash)) { + this.Reset(); + // DeleteProfile() is sync, it doesn't apply and we are modifying the plugins collection. Will throw below when iterating profman.DeleteProfile(profile); Task.Run(() => profman.ApplyAllWantStates()) .ContinueWith(t => { - this.Reset(); this.installer.DisplayErrorContinuation(t, "Could not refresh profiles."); }); }