Funktion clear Checkboxes updated

Visuell wurde die Checkbox nicht abgewählt.
This commit is contained in:
Domenik Rath 2023-12-06 15:53:38 +01:00
parent 2357f8d2be
commit 8b82bb8975

View File

@ -958,7 +958,10 @@ class WebseitenSucheApp(QWidget):
return checkbox_callback
def update_webpage_state(self, webpage, state):
self.checkbox_states[webpage] = state
self.checkbox_states[webpage] = state
for checkbox in self.findChildren(QCheckBox):
if checkbox.text() == webpage:
checkbox.setChecked(state)
def clear_checkboxes(self):
for webpage in self.checkbox_states: