mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 20:33:40 +01:00
remove plugins from deleting profile synchronously
This commit is contained in:
parent
2ed215b74b
commit
7fe004c875
2 changed files with 8 additions and 4 deletions
|
|
@ -243,7 +243,9 @@ internal class ProfileManagerWidget
|
|||
|
||||
if (ImGuiComponents.IconButton(FontAwesomeIcon.Trash))
|
||||
{
|
||||
Task.Run(() => profman.DeleteProfile(profile))
|
||||
// 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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue