[gnome-shell] dateMenu: Sync initial state of the message indicator



commit 4c4d23ed83fcd5a5fa0fc2c314ec2b898f38c100
Author: Jonas Dreßler <verdre v0yd nl>
Date:   Thu Feb 20 19:57:20 2020 +0100

    dateMenu: Sync initial state of the message indicator
    
    While the unread messages indicator is updated when starting a new
    session because we call _onSourceAdded() on existing sources, we should
    also update the do-not-disturb setting which might still be enabled.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1037

 js/ui/dateMenu.js | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js
index 9d1de44b15..c6c1b5bb5a 100644
--- a/js/ui/dateMenu.js
+++ b/js/ui/dateMenu.js
@@ -454,6 +454,8 @@ class MessagesIndicator extends St.Icon {
         let sources = Main.messageTray.getSources();
         sources.forEach(source => this._onSourceAdded(null, source));
 
+        this._sync();
+
         this.connect('destroy', () => {
             this._settings.run_dispose();
             this._settings = null;


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