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
This commit is contained in:
Jonas Dreßler 2020-02-20 19:57:20 +01:00 committed by Florian Müllner
parent 7173ec1df7
commit 4c4d23ed83

View File

@ -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;