1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-26 08:12:26 +01:00

Always show the navbar in customize mode.

This commit is contained in:
Kris Maglione
2014-02-16 21:29:55 -08:00
parent 2ba1a6ec5c
commit 6d48ed2e9e

View File

@@ -817,6 +817,20 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
},
events: {
beforecustomization: function onbeforecustomization(event) {
// Show navigation bar on Australis, where it's not supposed
// to be collapsible, and is therefore not handled by
// builtin code.
if ("CustomizableUI" in window)
this.setNodeVisible(document.getElementById("nav-bar"),
true);
},
aftercustomization: function onaftercustomization(event) {
// Restore toolbar states.
options["guioptions"] = options["guioptions"];
},
click: function onClick(event) {
let elem = event.originalTarget;