From de34e25f4fe6559eedda100b73e6f8cc5cc614cd Mon Sep 17 00:00:00 2001 From: miruka Date: Tue, 3 Nov 2020 11:00:15 -0400 Subject: [PATCH] Urgency hint enabled by default depending on sound Make the urgency hint tweak for push rules actions enabled by default if the rule also has the sound tweak enabled, instead of highlight tweak. --- src/backend/nio_callbacks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/nio_callbacks.py b/src/backend/nio_callbacks.py index fd9f3768..89703fb9 100644 --- a/src/backend/nio_callbacks.py +++ b/src/backend/nio_callbacks.py @@ -822,7 +822,7 @@ class NioCallbacks: high = tweaks.get("highlight", False) is not False bubble = tweaks.get("bubble", notify) is not False sound = str(tweaks.get("sound") or "") - hint = tweaks.get("urgency_hint", high) is not False + hint = tweaks.get("urgency_hint", bool(sound)) is not False model[kind.value, rule.id] = PushRule( id = (kind.value, rule.id),