From 257a368e0220f9fc7aada7788bf28ebee264241c Mon Sep 17 00:00:00 2001 From: itdominator <1itdominator@gmail.com> Date: Sun, 12 Nov 2023 17:34:13 -0600 Subject: [PATCH] Improved handle placement on ctrl+shift --> 2nd pane when hidden --- src/core/widgets/base/notebook/editor_events.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/widgets/base/notebook/editor_events.py b/src/core/widgets/base/notebook/editor_events.py index 73993f5..4e9a82c 100644 --- a/src/core/widgets/base/notebook/editor_events.py +++ b/src/core/widgets/base/notebook/editor_events.py @@ -114,7 +114,10 @@ class EditorEventsMixin: tab = page.get_tab_widget() self.detach_tab(page) - notebook.show() + if not notebook.is_visible(): + notebook.show() + event_system.emit("update_paned_handle") + notebook.insert_page(page, tab, -1) self.set_page_focus(page, notebook, self)