ratbagd.py: fix changes to IsActive potentially not being notified about

This commit is contained in:
Yaroslav Chvanov
2022-12-23 23:41:30 +03:00
parent 2031e169ab
commit e32145ecc7

View File

@@ -551,7 +551,8 @@ class RatbagdResolution(_RatbagdDBus):
if active != self._active:
self._active = active
self.notify("is-active")
elif "IsDefault" in changed_props.keys():
if "IsDefault" in changed_props.keys():
default = changed_props["IsDefault"]
if default != self._default:
self._default = default