mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
add bodge "match to plugin" UI for installed plugins
This commit is contained in:
parent
9024c9b00c
commit
23ddc78241
1 changed files with 16 additions and 2 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue