Update __main__.py

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2024-04-28 20:10:33 +08:00
parent e83bc6085e
commit c510da3d5e
+4 -6
View File
@@ -91,7 +91,7 @@ def main():
)
)
# Show the AppQMessageBox and wait for user to close it
# Show the MessageBox and wait for user to close it
messageBox.exec()
else:
if exitcode == ApplicationFactory.ExitCode.AssertionError:
@@ -123,10 +123,8 @@ def main():
)
messageBox.addButton(_('OK'), AppQMessageBox.ButtonRole.RejectRole)
# Show the AppQMessageBox and wait for user to close it
choice = messageBox.exec()
if choice == PySide6LegacyEnumValueWrapper(
# Show the MessageBox and wait for user to close it
if messageBox.exec() == PySide6LegacyEnumValueWrapper(
AppQMessageBox.ButtonRole.AcceptRole
):
# Open
@@ -142,7 +140,7 @@ def main():
else:
# Crash log not saved
# Show the AppQMessageBox and wait for user to close it
# Show the MessageBox and wait for user to close it
messageBox.exec()
sys.exit(exitcode)