From af157c36646c8be396dad57a59f6e849e9a5ebae Mon Sep 17 00:00:00 2001 From: goat Date: Sat, 15 Jul 2023 22:46:47 +0200 Subject: [PATCH] fix: only persist plugin state to default profile when removing profile is enabled --- Dalamud/Plugin/Internal/Profiles/Profile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dalamud/Plugin/Internal/Profiles/Profile.cs b/Dalamud/Plugin/Internal/Profiles/Profile.cs index 71feff0c2..61d521e89 100644 --- a/Dalamud/Plugin/Internal/Profiles/Profile.cs +++ b/Dalamud/Plugin/Internal/Profiles/Profile.cs @@ -219,7 +219,7 @@ internal class Profile { if (!this.IsDefaultProfile) { - await this.manager.DefaultProfile.AddOrUpdateAsync(internalName, entry.IsEnabled, false); + await this.manager.DefaultProfile.AddOrUpdateAsync(internalName, this.IsEnabled && entry.IsEnabled, false); } else {