[gnome-shell] sessionMode: Fix listModes()
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] sessionMode: Fix listModes()
- Date: Sat, 7 Dec 2013 09:11:00 +0000 (UTC)
commit 4d9a16f33b0ba742441b6b1960392c70500d4614
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Dec 6 21:29:37 2013 +0100
sessionMode: Fix listModes()
Commit da4238ec681c7ca just broke that function completely by
calling array methods on objects and other funny stuff. Fix it.
https://bugzilla.gnome.org/show_bug.cgi?id=720017
js/ui/sessionMode.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/sessionMode.js b/js/ui/sessionMode.js
index 2600cbb..7b8bc17 100644
--- a/js/ui/sessionMode.js
+++ b/js/ui/sessionMode.js
@@ -134,7 +134,7 @@ function _loadModes() {
function listModes() {
_loadModes();
- modes.forEach(function() {
+ Mainloop.idle_add(function() {
let names = Object.getOwnPropertyNames(_modes);
for (let i = 0; i < names.length; i++)
if (_modes[names[i]].isPrimary)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]