add bodge "match to plugin" UI for installed plugins

This commit is contained in:
goaaats 2024-01-18 22:53:17 +01:00
parent 9024c9b00c
commit 23ddc78241
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B

View file

@ -479,8 +479,22 @@ internal class ProfileManagerWidget
if (firstAvailableInstalled != null)
{
// TODO
ImGui.Text("GOAT WAS TOO LAZY TO IMPLEMENT THIS");
ImGui.Text($"Match to plugin '{firstAvailableInstalled.Name}'?");
ImGui.SameLine();
if (ImGuiComponents.IconButtonWithText(
FontAwesomeIcon.Check,
"Yes, use this one"))
{
profileEntry.WorkingPluginId = firstAvailableInstalled.Manifest.WorkingPluginId;
Task.Run(async () =>
{
await profman.ApplyAllWantStatesAsync();
})
.ContinueWith(t =>
{
this.installer.DisplayErrorContinuation(t, Locs.ErrorCouldNotChangeState);
});
}
}
else if (installable != null)
{