mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 05:04:15 +01:00
Fix some ImGui.End calls
This commit is contained in:
parent
476b6b9613
commit
ec9f365930
2 changed files with 11 additions and 8 deletions
|
|
@ -640,9 +640,9 @@ internal class DalamudInterface : IInternalDisposableService
|
||||||
ImGui.SetNextItemWidth(40);
|
ImGui.SetNextItemWidth(40);
|
||||||
if (ImGui.Button("###devMenuOpener", new Vector2(20, 20)))
|
if (ImGui.Button("###devMenuOpener", new Vector2(20, 20)))
|
||||||
this.isImGuiDrawDevMenu = true;
|
this.isImGuiDrawDevMenu = true;
|
||||||
|
}
|
||||||
|
|
||||||
ImGui.End();
|
ImGui.End();
|
||||||
}
|
|
||||||
|
|
||||||
if (EnvironmentConfiguration.DalamudForceMinHook)
|
if (EnvironmentConfiguration.DalamudForceMinHook)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -709,7 +709,9 @@ public sealed class UiBuilder : IDisposable, IUiBuilder
|
||||||
this.stopwatch.Restart();
|
this.stopwatch.Restart();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.hasErrorWindow && ImGui.Begin($"{this.namespaceName} Error", ref this.hasErrorWindow, ImGuiWindowFlags.NoCollapse | ImGuiWindowFlags.NoResize))
|
if (this.hasErrorWindow)
|
||||||
|
{
|
||||||
|
if (ImGui.Begin($"{this.namespaceName} Error", ref this.hasErrorWindow, ImGuiWindowFlags.NoCollapse | ImGuiWindowFlags.NoResize))
|
||||||
{
|
{
|
||||||
ImGui.Text($"The plugin {this.namespaceName} ran into an error.\nContact the plugin developer for support.\n\nPlease try restarting your game.");
|
ImGui.Text($"The plugin {this.namespaceName} ran into an error.\nContact the plugin developer for support.\n\nPlease try restarting your game.");
|
||||||
ImGui.Spacing();
|
ImGui.Spacing();
|
||||||
|
|
@ -718,6 +720,7 @@ public sealed class UiBuilder : IDisposable, IUiBuilder
|
||||||
{
|
{
|
||||||
this.hasErrorWindow = false;
|
this.hasErrorWindow = false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ImGui.End();
|
ImGui.End();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue