mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-18 22:54:23 +01:00
Small improvement.
This commit is contained in:
parent
3170edfeb6
commit
4ca49598f8
1 changed files with 6 additions and 8 deletions
|
|
@ -3,6 +3,7 @@ using Dalamud.Interface.Utility;
|
||||||
using ImGuiNET;
|
using ImGuiNET;
|
||||||
using OtterGui;
|
using OtterGui;
|
||||||
using OtterGui.Raii;
|
using OtterGui.Raii;
|
||||||
|
using OtterGui.Text;
|
||||||
using OtterGui.Widgets;
|
using OtterGui.Widgets;
|
||||||
using Penumbra.Collections.Cache;
|
using Penumbra.Collections.Cache;
|
||||||
using Penumbra.Collections.Manager;
|
using Penumbra.Collections.Manager;
|
||||||
|
|
@ -116,16 +117,13 @@ public class ModPanelConflictsTab(CollectionManager collectionManager, ModFileSy
|
||||||
using var indent = ImRaii.PushIndent(30f);
|
using var indent = ImRaii.PushIndent(30f);
|
||||||
foreach (var data in conflict.Conflicts)
|
foreach (var data in conflict.Conflicts)
|
||||||
{
|
{
|
||||||
unsafe
|
_ = data switch
|
||||||
{
|
{
|
||||||
var _ = data switch
|
Utf8GamePath p => ImUtf8.Selectable(p.Path.Span, false),
|
||||||
{
|
IMetaIdentifier m => ImUtf8.Selectable(m.ToString(), false),
|
||||||
Utf8GamePath p => ImGuiNative.igSelectable_Bool(p.Path.Path, 0, ImGuiSelectableFlags.None, Vector2.Zero) > 0,
|
|
||||||
IMetaIdentifier m => ImGui.Selectable(m.ToString()),
|
|
||||||
_ => false,
|
_ => false,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue