[gnome-shell/wip/background-rework: 6/13] sessionMode: load internal session modes immediately
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/background-rework: 6/13] sessionMode: load internal session modes immediately
- Date: Wed, 13 Feb 2013 21:29:47 +0000 (UTC)
commit 7ed68799b511c071d460c6922495e88c9cb59755
Author: Ray Strode <rstrode redhat com>
Date: Mon Feb 4 15:38:01 2013 -0500
sessionMode: load internal session modes immediately
We need isGreeter and friends to work in early startup
js/ui/sessionMode.js | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/sessionMode.js b/js/ui/sessionMode.js
index 2774ad6..a17e817 100644
--- a/js/ui/sessionMode.js
+++ b/js/ui/sessionMode.js
@@ -160,7 +160,12 @@ const SessionMode = new Lang.Class({
_init: function() {
global.connect('notify::session-mode', Lang.bind(this, this._sync));
this._modes = _modes;
- this._modeStack = [DEFAULT_MODE];
+
+ if (_modes[global.session_mode] && _modes[global.session_mode].isPrimary)
+ this._modeStack = [global.session_mode];
+ else
+ this._modeStack = [DEFAULT_MODE];
+
this._sync();
_getModes(Lang.bind(this, function(modes) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]