[gnome-shell/wip/rstrode/rhel-7.9: 46/86] realmd: Set login format to null on start and update if invalid
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/rstrode/rhel-7.9: 46/86] realmd: Set login format to null on start and update if invalid
- Date: Fri, 12 Feb 2021 19:04:07 +0000 (UTC)
commit 0b23894f0a3f835472195d445f5dceb986306064
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Thu May 23 06:12:56 2019 +0200
realmd: Set login format to null on start and update if invalid
We were checking an undefined property but that would lead to a a warning.
Instead we can consider the login format unset until is null, and in case
update it.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/700
js/gdm/realmd.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/js/gdm/realmd.js b/js/gdm/realmd.js
index 9aa27d9287..c3a35ea489 100644
--- a/js/gdm/realmd.js
+++ b/js/gdm/realmd.js
@@ -68,6 +68,7 @@ var Manager = new Lang.Class({
'/org/freedesktop/realmd',
this._reloadRealms.bind(this))
this._realms = {};
+ this._loginFormat = null;
this._signalId = this._aggregateProvider.connect('g-properties-changed',
(proxy, properties) => {
@@ -133,7 +134,7 @@ var Manager = new Lang.Class({
},
get loginFormat() {
- if (this._loginFormat !== undefined)
+ if (this._loginFormat)
return this._loginFormat;
this._updateLoginFormat();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]