From dee2ba08f92ee401a989582e051cf98e8be68433 Mon Sep 17 00:00:00 2001 From: Loren Eteval Date: Mon, 29 Apr 2024 08:09:44 +0800 Subject: [PATCH] Refine text-editor behavior Signed-off-by: Loren Eteval --- Furious/Window/TextEditorWindow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Furious/Window/TextEditorWindow.py b/Furious/Window/TextEditorWindow.py index 52d9d89..717b765 100644 --- a/Furious/Window/TextEditorWindow.py +++ b/Furious/Window/TextEditorWindow.py @@ -115,8 +115,8 @@ class TextEditorWindow(AppQMainWindow): super().__init__(*args, **kwargs) self.customWindowTitle = '' - self.setWindowModality(QtCore.Qt.WindowModality.WindowModal) - self.setFixedSize(520, int(520 * GOLDEN_RATIO)) + self.setWindowModality(QtCore.Qt.WindowModality.ApplicationModal) + self.setFixedSize(470, int(470 * GOLDEN_RATIO)) # Current editing index self.currentIndex = -1