sessionMode: Fix left-over variable in _loadMode()
Commit da4238ec681c7ca dropped a variable, but didn't replace all consumers. https://bugzilla.gnome.org/show_bug.cgi?id=720017
This commit is contained in:
parent
d21aa0d85f
commit
46bac3069e
@ -120,10 +120,10 @@ function _loadMode(file, info) {
|
|||||||
|
|
||||||
_modes[modeName] = {};
|
_modes[modeName] = {};
|
||||||
let propBlacklist = ['unlockDialog'];
|
let propBlacklist = ['unlockDialog'];
|
||||||
for (let prop in loadedData[DEFAULT_MODE]) {
|
for (let prop in _modes[DEFAULT_MODE]) {
|
||||||
if (newMode[prop] !== undefined &&
|
if (newMode[prop] !== undefined &&
|
||||||
propBlacklist.indexOf(prop) == -1)
|
propBlacklist.indexOf(prop) == -1)
|
||||||
loadedData[modeName][prop] = newMode[prop];
|
_modes[modeName][prop] = newMode[prop];
|
||||||
}
|
}
|
||||||
_modes[modeName]['isPrimary'] = true;
|
_modes[modeName]['isPrimary'] = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user