sessionMode: Fix left-over variable in _loadMode()
Commit da4238ec68
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] = {};
|
||||
let propBlacklist = ['unlockDialog'];
|
||||
for (let prop in loadedData[DEFAULT_MODE]) {
|
||||
for (let prop in _modes[DEFAULT_MODE]) {
|
||||
if (newMode[prop] !== undefined &&
|
||||
propBlacklist.indexOf(prop) == -1)
|
||||
loadedData[modeName][prop] = newMode[prop];
|
||||
_modes[modeName][prop] = newMode[prop];
|
||||
}
|
||||
_modes[modeName]['isPrimary'] = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user