From 998e3e62ad85333f9fb742c1da9ce4f9d3e12c9b Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Tue, 1 Sep 2020 17:12:56 -0300 Subject: [PATCH] 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 --- js/ui/appDisplay.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 98ac9e68b..9e00823f6 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -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() {