[gnome-shell/gbsneto/reload-on-pages-changed] appDisplay: Connect to GSettings after reading key
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/reload-on-pages-changed] appDisplay: Connect to GSettings after reading key
- Date: Tue, 1 Sep 2020 20:14:06 +0000 (UTC)
commit 998e3e62ad85333f9fb742c1da9ce4f9d3e12c9b
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Sep 1 17:12:56 2020 -0300
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 98ac9e68b0..9e00823f63 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() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]