Replace all PushTextWrapPos with using version

This commit is contained in:
Infi
2024-05-14 01:13:28 +02:00
parent 0de883ec39
commit 041b0f27d4
7 changed files with 71 additions and 78 deletions
+1 -3
View File
@@ -19,7 +19,7 @@ internal sealed class Display : ISettingsTab
public void Draw(bool changed)
{
ImGui.PushTextWrapPos();
using var wrap = ImGuiUtil.TextWrapPos();
ImGuiUtil.OptionCheckbox(ref Mutable.HideChat, Language.Options_HideChat_Name, Language.Options_HideChat_Description);
ImGui.Spacing();
@@ -52,7 +52,5 @@ internal sealed class Display : ISettingsTab
ImGuiUtil.OptionCheckbox(ref Mutable.CollapseDuplicateMessages, Language.Options_CollapseDuplicateMessages_Name, Language.Options_CollapseDuplicateMessages_Description);
ImGui.Spacing();
ImGui.PopTextWrapPos();
}
}