From c510da3d5e99098a32a5ad797f030b69fccb53e8 Mon Sep 17 00:00:00 2001 From: Loren Eteval Date: Sun, 28 Apr 2024 20:10:33 +0800 Subject: [PATCH] Update __main__.py Signed-off-by: Loren Eteval --- Furious/__main__.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Furious/__main__.py b/Furious/__main__.py index 041d1f7..9f0a720 100644 --- a/Furious/__main__.py +++ b/Furious/__main__.py @@ -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)