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)