1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 05:34:12 +01:00

Replace 'laststatus' with a 'guioptions' flag.

This commit is contained in:
Kris Maglione
2010-11-14 22:47:02 -05:00
parent 2518a3423f
commit 1abe9fc2bb
8 changed files with 10 additions and 56 deletions

View File

@@ -274,31 +274,6 @@ const StatusLine = Module("statusline", {
this.widgets.zoomlevel.value = " (" + percent + "%)";
}
}
}, {
}, {
options: function () {
options.add(["laststatus", "ls"],
"Show the status line",
"number", 2,
{
setter: function setter(value) {
if (value == 0)
statusline.statusBar.collapsed = true;
else if (value == 1)
dactyl.echoerr("show status line only with > 1 window not implemented yet");
else
statusline.statusBar.collapsed = false;
commandline.widgets.updateVisibility();
return value;
},
completer: function completer(context) [
["0", "Never display status line"],
["1", "Display status line only if there are multiple windows"],
["2", "Always display status line"]
]
});
}
});
// vim: set fdm=marker sw=4 ts=4 et: