From 352534dd17e801841617350cd6fa65296e8b8c1c Mon Sep 17 00:00:00 2001 From: itdominator <1itdominator@gmail.com> Date: Sun, 2 Apr 2023 20:46:50 -0500 Subject: [PATCH] Fixed focus on initial load/start --- src/core/widgets/base/notebook/editor_notebook.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/widgets/base/notebook/editor_notebook.py b/src/core/widgets/base/notebook/editor_notebook.py index 5bc2923..6a66927 100644 --- a/src/core/widgets/base/notebook/editor_notebook.py +++ b/src/core/widgets/base/notebook/editor_notebook.py @@ -43,7 +43,9 @@ class EditorNotebook(EditorEventsMixin, EditorControllerMixin, Gtk.Notebook): self.show_all() - print(self.NAME) + if self.NAME == "notebook_1": + self.is_editor_focused = True + if self.NAME == "notebook_2": self.hide()