appDisplay: Connect to GSettings after reading key

As per GSettings documentation, it is necessary to read a particular
key at least once before being able to connect to the corresponding
'changed::' signal.

Read the 'app-picker-layout' key before connecting to the changed
signal.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1428
This commit is contained in:
Georges Basile Stavracas Neto 2020-09-01 17:12:56 -03:00
parent 95645e155e
commit 998e3e62ad

View File

@ -829,11 +829,12 @@ var PageManager = GObject.registerClass({
_init() {
super._init();
this._updatingPages = false;
this._loadPages();
global.settings.connect('changed::app-picker-layout',
this._loadPages.bind(this));
this._updatingPages = false;
this._loadPages();
}
_loadPages() {