updates __getattribute__ of Observable

This commit is contained in:
Mose Müller 2023-12-04 17:16:01 +01:00
parent 43e6adcb2e
commit 8f8b3e3bcf

View File

@ -32,7 +32,11 @@ class Observable(ObservableObject):
self._notify_changed(name, value)
def __getattribute__(self, name: str) -> Any:
if is_property_attribute(self, name):
self._notify_change_start(name)
value = super().__getattribute__(name)
if is_property_attribute(self, name):
self._notify_changed(name, value)