Private
Public Access
0
0

fix(gui): Resolve Text Viewer docking conflict with unified ID

- Update Text Viewer window ID to '###Text_Viewer_Unified'.
- Ensures ImGui treats the window as a single stable entity across title changes.
- Prevents docking loop glitches.
This commit is contained in:
2026-06-02 15:45:07 -04:00
parent 4d8e949720
commit df6aa1f455
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ def test_text_viewer_window_id_stability():
# Verify imgui.begin was called with the stable ID suffix
args, _ = mock_imgui.begin.call_args
window_title = args[0]
assert "###Text_Viewer_Stable" in window_title
assert "###Text_Viewer_Unified" in window_title
assert window_title.startswith("Custom Title")
def test_text_viewer_window_default_title_id_stability():
@@ -50,5 +50,5 @@ def test_text_viewer_window_default_title_id_stability():
# Verify imgui.begin was called with the stable ID suffix
args, _ = mock_imgui.begin.call_args
window_title = args[0]
assert "###Text_Viewer_Stable" in window_title
assert "###Text_Viewer_Unified" in window_title
assert window_title.startswith("Text Viewer")