From 173b971055262976e0a262e6e12c019bb337264b Mon Sep 17 00:00:00 2001 From: Oscar Gustafsson <oscar.gustafsson@gmail.com> Date: Thu, 8 Sep 2022 20:50:53 +0200 Subject: [PATCH] Add exit method to fix scheduler gui test --- b_asic/scheduler_gui/main_window.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/b_asic/scheduler_gui/main_window.py b/b_asic/scheduler_gui/main_window.py index 29ef7253..42b2cc58 100644 --- a/b_asic/scheduler_gui/main_window.py +++ b/b_asic/scheduler_gui/main_window.py @@ -529,6 +529,11 @@ class MainWindow(QMainWindow, Ui_MainWindow): "'Operator' not found in info table. It may have been renamed." ) + def exit_app(self): + """Exit application.""" + log.info("Exiting the application.") + QApplication.quit() + def info_table_clear_component(self) -> None: """Clears the component part of the info table.""" row = self.info_table.findItems("Operator", Qt.MatchExactly) -- GitLab