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:
parent
95645e155e
commit
998e3e62ad
@ -829,11 +829,12 @@ var PageManager = GObject.registerClass({
|
|||||||
_init() {
|
_init() {
|
||||||
super._init();
|
super._init();
|
||||||
|
|
||||||
|
this._updatingPages = false;
|
||||||
|
this._loadPages();
|
||||||
|
|
||||||
global.settings.connect('changed::app-picker-layout',
|
global.settings.connect('changed::app-picker-layout',
|
||||||
this._loadPages.bind(this));
|
this._loadPages.bind(this));
|
||||||
|
|
||||||
this._updatingPages = false;
|
|
||||||
this._loadPages();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_loadPages() {
|
_loadPages() {
|
||||||
|
Loading…
Reference in New Issue
Block a user