sessionMode: Fix listModes()
Commit da4238ec68
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
This commit is contained in:
parent
c9f2a0f694
commit
4d9a16f33b
@ -134,7 +134,7 @@ function _loadModes() {
|
|||||||
|
|
||||||
function listModes() {
|
function listModes() {
|
||||||
_loadModes();
|
_loadModes();
|
||||||
modes.forEach(function() {
|
Mainloop.idle_add(function() {
|
||||||
let names = Object.getOwnPropertyNames(_modes);
|
let names = Object.getOwnPropertyNames(_modes);
|
||||||
for (let i = 0; i < names.length; i++)
|
for (let i = 0; i < names.length; i++)
|
||||||
if (_modes[names[i]].isPrimary)
|
if (_modes[names[i]].isPrimary)
|
||||||
|
Loading…
Reference in New Issue
Block a user