From 4c4d23ed83fcd5a5fa0fc2c314ec2b898f38c100 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Thu, 20 Feb 2020 19:57:20 +0100 Subject: [PATCH] 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 9d1de44b1..c6c1b5bb5 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;