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() {
|
||||
_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)
|
||||
|
Loading…
Reference in New Issue
Block a user