[orca] Only present notifications when state changed to showing



commit 1b724c76af543aa260e1b2c8178d23d04709e569
Author: Michael Weghorn <m weghorn posteo de>
Date:   Fri Sep 9 09:24:22 2022 +0000

    Only present notifications when state changed to showing

 src/orca/scripts/default.py | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index b4650f24b..199cc1963 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -2691,6 +2691,8 @@ class Script(script.Script):
         obj = event.source
         role = obj.getRole()
         if role == pyatspi.ROLE_NOTIFICATION:
+            if not event.detail1:
+                return
             speech.speak(self.speechGenerator.generateSpeech(obj))
             visibleOnly = not self.utilities.isStatusBarNotification(obj)
             labels = self.utilities.unrelatedLabels(obj, visibleOnly, 1)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]