messageTray: Don't call _createPolicy() unconditionally
Since commit 932ccac1c27, the Source constructor takes a properties object instead of individual arguments. That means that the policy may now be set through a construct property, and we shouldn't override it if that was the case. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3170>
This commit is contained in:
parent
60fb2de15f
commit
ebec609207
@ -614,6 +614,7 @@ export const Source = GObject.registerClass({
|
|||||||
|
|
||||||
this.notifications = [];
|
this.notifications = [];
|
||||||
|
|
||||||
|
if (!this._policy)
|
||||||
this._policy = this._createPolicy();
|
this._policy = this._createPolicy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user