From e32145ecc7fe49b3fd85c4f4189418a18f34bd57 Mon Sep 17 00:00:00 2001 From: Yaroslav Chvanov Date: Fri, 23 Dec 2022 23:41:30 +0300 Subject: [PATCH] ratbagd.py: fix changes to IsActive potentially not being notified about --- tools/ratbagd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/ratbagd.py b/tools/ratbagd.py index 434efa87..d8496cb5 100644 --- a/tools/ratbagd.py +++ b/tools/ratbagd.py @@ -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