fix: only persist plugin state to default profile when removing profile is enabled

This commit is contained in:
goat 2023-07-15 22:46:47 +02:00
parent 1f0526b2ef
commit af157c3664
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B

View file

@ -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
{