fix module hidden status

This commit is contained in:
Joseph Bethge
2017-01-28 12:26:52 +01:00
parent 6e2f1f72c6
commit d3c0b9a438
2 changed files with 4 additions and 1 deletions

View File

@@ -232,6 +232,8 @@ var MM = (function() {
return;
}
module.hidden = false;
// If forced show, clean current lockstrings.
if (module.lockStrings.length !== 0 && options.force === true) {
Log.log("Force show of module: " + module.name);
@@ -504,7 +506,7 @@ var MM = (function() {
* argument options object - Optional settings for the hide method.
*/
showModule: function(module, speed, callback, options) {
module.hidden = false;
// do not change module.hidden yet, only if we really show it later
showModule(module, speed, callback, options);
}
};