From 9f1402bc553f124796b4fdc80e47608ded964a56 Mon Sep 17 00:00:00 2001 From: mistangl Date: Wed, 14 Feb 2024 19:04:02 +0100 Subject: [PATCH] =?UTF-8?q?fix=20in=20der=20Controllerlogik,=20wann=20der?= =?UTF-8?q?=20Suche=20Knopf=20gedr=C3=BCckt=20werden=20kann?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/controller.py b/lib/controller.py index 0b1ec78..11bba1b 100644 --- a/lib/controller.py +++ b/lib/controller.py @@ -191,7 +191,7 @@ class Controller(Observer): aus_halbzeug = self._model.get_gui_data("aus_halbzeug_neu") neuaufbau = self._model.get_gui_data("neuaufbau") # Suche Knopf darf nur bei Einzelteilen funktionieren und wenn Halbzeug/NEuaufbau nicht angehakt sind - if pdm_kategorie_neu == "Einzelteil" and aus_halbzeug == "False" or neuaufbau == "False": + if pdm_kategorie_neu == "Einzelteil" and not (aus_halbzeug == True or neuaufbau == True): newpath = self._view.suche_3d() self._model.set_gui_data('model3d_neu', newpath)