mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-29 11:59:21 +01:00
fix: don't use tables for the installer layout, more ImRaii conversion
Apparently children inside tables is UB
This commit is contained in:
parent
30176e61f5
commit
5a76f3ebe5
2 changed files with 31 additions and 40 deletions
|
|
@ -107,7 +107,8 @@ internal class ProfileManagerWidget
|
|||
|
||||
var windowSize = ImGui.GetWindowSize();
|
||||
|
||||
if (ImGui.BeginChild("###profileChooserScrolling"))
|
||||
using var profileChooserChild = ImRaii.Child("###profileChooserScrolling");
|
||||
if (profileChooserChild)
|
||||
{
|
||||
Guid? toCloneGuid = null;
|
||||
|
||||
|
|
@ -180,8 +181,6 @@ internal class ProfileManagerWidget
|
|||
ImGuiHelpers.CenteredText(Locs.AddProfileHint);
|
||||
ImGui.PopStyleColor();
|
||||
}
|
||||
|
||||
ImGui.EndChild();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -325,7 +324,8 @@ internal class ProfileManagerWidget
|
|||
ImGui.Separator();
|
||||
var wantPluginAddPopup = false;
|
||||
|
||||
if (ImGui.BeginChild("###profileEditorPluginList"))
|
||||
using var pluginListChild = ImRaii.Child("###profileEditorPluginList");
|
||||
if (pluginListChild)
|
||||
{
|
||||
var pluginLineHeight = 32 * ImGuiHelpers.GlobalScale;
|
||||
string? wantRemovePluginInternalName = null;
|
||||
|
|
@ -439,8 +439,6 @@ internal class ProfileManagerWidget
|
|||
ImGui.TextUnformatted(addPluginsText);
|
||||
|
||||
ImGuiHelpers.ScaledDummy(10);
|
||||
|
||||
ImGui.EndChild();
|
||||
}
|
||||
|
||||
if (wantPluginAddPopup)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue