Update TextEditorWindow.py

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2024-05-28 11:50:27 +08:00
parent df50f57843
commit 5bcef9721c
+1 -11
View File
@@ -347,17 +347,7 @@ class TextEditorWindow(AppQMainWindow):
pass
if index == AS_UserActivatedItemIndex():
try:
if APP().isSystemTrayConnected():
mbox = NewChangesNextTimeMBox(parent=self)
mbox.setWindowModality(QtCore.Qt.WindowModality.WindowModal)
# Show the MessageBox asynchronously
mbox.open()
except Exception:
# Any non-exit exceptions
pass
showNewChangesNextTimeMBox(parent=self)
self.markAsSaved()