From 1475239ee919887dca50e7369b7f0ecb9d972493 Mon Sep 17 00:00:00 2001 From: Tab Memmott Date: Sun, 20 Oct 2024 15:31:01 -0700 Subject: [PATCH] revert app close --- bcipy/gui/alert.py | 2 +- bcipy/gui/bciui.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bcipy/gui/alert.py b/bcipy/gui/alert.py index 8d052685..91fec4c9 100644 --- a/bcipy/gui/alert.py +++ b/bcipy/gui/alert.py @@ -23,5 +23,5 @@ def confirm(message: str) -> bool: message_response=AlertMessageResponse.OCE) button = dialog.exec() result = bool(button == AlertResponse.OK.value) - QApplication.instance().quit() + app.quit() return result diff --git a/bcipy/gui/bciui.py b/bcipy/gui/bciui.py index 5099ce9b..b3c30183 100644 --- a/bcipy/gui/bciui.py +++ b/bcipy/gui/bciui.py @@ -235,4 +235,4 @@ def run_bciui(ui: Type[BCIUI], *args, **kwargs): app = QApplication(sys.argv) ui_instance = ui(*args, **kwargs) ui_instance.display() - app.exec() + return app.exec()