always add plugins as enabled in profile editor

This commit is contained in:
goat 2023-04-10 21:20:36 +02:00
parent b0906af1ba
commit 91ada49fa7
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B

View file

@ -204,10 +204,10 @@ internal class ProfileManagerWidget
using (ImRaii.Disabled(this.pickerSelectedPluginInternalName == null)) using (ImRaii.Disabled(this.pickerSelectedPluginInternalName == null))
{ {
if (ImGui.Button("Do it") && selected != null) if (ImGui.Button("Add plugin") && selected != null)
{ {
// TODO: handle error // TODO: handle error
profile.AddOrUpdate(selected.Manifest.InternalName, selected.IsLoaded, false); profile.AddOrUpdate(selected.Manifest.InternalName, true, false);
Task.Run(() => profman.ApplyAllWantStates()) Task.Run(() => profman.ApplyAllWantStates())
.ContinueWith(this.installer.DisplayErrorContinuation, "Could not change plugin state."); .ContinueWith(this.installer.DisplayErrorContinuation, "Could not change plugin state.");
} }