mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
messageTray: Don't call _createPolicy() unconditionally
Since commit 932ccac1c2, 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
1 changed files with 2 additions and 1 deletions
|
|
@ -614,7 +614,8 @@ export const Source = GObject.registerClass({
|
|||
|
||||
this.notifications = [];
|
||||
|
||||
this._policy = this._createPolicy();
|
||||
if (!this._policy)
|
||||
this._policy = this._createPolicy();
|
||||
}
|
||||
|
||||
get policy() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue