From 139371a1e6a647c6b52c1bdc857675d851f71c60 Mon Sep 17 00:00:00 2001 From: stten5 Date: Sat, 25 Mar 2023 16:20:09 +0100 Subject: [PATCH] STTEN5 --- src/main.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main.py b/src/main.py index 4c5cf15..fbed427 100644 --- a/src/main.py +++ b/src/main.py @@ -233,14 +233,10 @@ try: self.open_login() def set_recipe_mode_table(self): - if type(self.main_window.centralWidget) is Test: - self.main_window.centralWidget.change_recipe() - self.main_window.centralWidget.set_recipe_mode_table() + self.main_window.centralWidget().set_recipe_mode_table() def set_recipe_mode_barcode(self): - if type(self.main_window.centralWidget) is Test: - self.main_window.centralWidget.change_recipe() - self.main_window.centralWidget.set_recipe_mode_barcode() + self.main_window.centralWidget().set_recipe_mode_barcode() if __name__ == "__main__": app = QApplication(sys.argv)