mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 22:38:00 +01:00
Fix bugs.
This commit is contained in:
@@ -263,7 +263,7 @@ var CommandWidgets = Class("CommandWidgets", {
|
|||||||
}
|
}
|
||||||
[this.commandbar.container, this.statusbar.container].forEach(check);
|
[this.commandbar.container, this.statusbar.container].forEach(check);
|
||||||
|
|
||||||
if (this.initialized && loaded.mow && mow.visible)
|
if (this.initialized && loaded.has("mow") && mow.visible)
|
||||||
mow.resize(false);
|
mow.resize(false);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -1314,7 +1314,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
|||||||
M: ["Always show messages outside of the status line"]
|
M: ["Always show messages outside of the status line"]
|
||||||
},
|
},
|
||||||
setter: function (opts) {
|
setter: function (opts) {
|
||||||
if (loaded.commandline || ~opts.indexOf("c"))
|
if (loaded.has("commandline") || ~opts.indexOf("c"))
|
||||||
commandline.widgets.updateVisibility();
|
commandline.widgets.updateVisibility();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -262,12 +262,12 @@ var Modes = Module("modes", {
|
|||||||
|
|
||||||
// show the current mode string in the command line
|
// show the current mode string in the command line
|
||||||
show: function show() {
|
show: function show() {
|
||||||
if (!loaded.modes)
|
if (!loaded.has("modes"))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
let msg = this._getModeMessage();
|
let msg = this._getModeMessage();
|
||||||
|
|
||||||
if (msg || loaded.commandline)
|
if (msg || loaded.has("commandline"))
|
||||||
commandline.widgets.mode = msg || null;
|
commandline.widgets.mode = msg || null;
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -494,7 +494,7 @@ var Modes = Module("modes", {
|
|||||||
StackElement.defaultValue("params", function () this.main.params);
|
StackElement.defaultValue("params", function () this.main.params);
|
||||||
|
|
||||||
update(StackElement.prototype, {
|
update(StackElement.prototype, {
|
||||||
get toStringParams() !loaded.modes ? [this.main.name] : [
|
get toStringParams() !loaded.has("modes") ? [this.main.name] : [
|
||||||
this.main.name,
|
this.main.name,
|
||||||
["(", modes.all.filter(m => this.extended & m)
|
["(", modes.all.filter(m => this.extended & m)
|
||||||
.map(m => m.name)
|
.map(m => m.name)
|
||||||
|
|||||||
Reference in New Issue
Block a user