Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
bc2c5ce0 by wurstsalat at 2022-01-27T12:28:46+01:00
Fix notifications on Windows

- - - - -


1 changed file:

- gajim/gtk/notification.py


Changes:

=====================================
gajim/gtk/notification.py
=====================================
@@ -121,16 +121,16 @@ def __init__(self):
     def _send(self, event: events.Notification) -> None:
         timeout = app.settings.get('notification_timeout')
         self._withdraw()
-        self._win32_active_popup = PopupNotification(event, timeout)
+        self._active_notification = PopupNotification(event, timeout)
 
         def _on_popup_destroy(_widget: Gtk.Window) -> None:
-            self._win32_active_popup = None
+            self._active_notification = None
 
-        self._win32_active_popup.connect('destroy', _on_popup_destroy)
+        self._active_notification.connect('destroy', _on_popup_destroy)
 
     def _withdraw(self, *args: Any) -> None:
-        if self._win32_active_popup is not None:
-            self._win32_active_popup.destroy()
+        if self._active_notification is not None:
+            self._active_notification.destroy()
 
 
 class PopupNotification(Gtk.Window):



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/bc2c5ce08a7750897c4b1778aa32cf47982d12fb

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/bc2c5ce08a7750897c4b1778aa32cf47982d12fb
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to