mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
actually delete profiles in release build
This commit is contained in:
parent
7fe004c875
commit
8d7ae903a4
1 changed files with 5 additions and 2 deletions
|
|
@ -246,8 +246,11 @@ internal class ProfileManager : IServiceType
|
|||
profile.Remove(plugin.InternalName, false);
|
||||
}
|
||||
|
||||
Debug.Assert(this.config.SavedProfiles!.Remove(profile.Model), "this.config.SavedProfiles!.Remove(profile.Model)");
|
||||
Debug.Assert(this.profiles.Remove(profile), "this.profiles.Remove(profile)");
|
||||
if (!this.config.SavedProfiles!.Remove(profile.Model))
|
||||
throw new Exception("Couldn't remove profile from models");
|
||||
|
||||
if (!this.profiles.Remove(profile))
|
||||
throw new Exception("Couldn't remove runtime profile");
|
||||
|
||||
this.config.QueueSave();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue