Refine text-editor behavior

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2024-04-29 08:09:44 +08:00
parent 2843c714b7
commit dee2ba08f9
+2 -2
View File
@@ -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