mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 14:28:39 +09:00
Issue #991 Part 3: Devtools
This commit is contained in:
parent
5d978c380c
commit
e2e42f0e1a
5 changed files with 12 additions and 41 deletions
|
|
@ -1131,12 +1131,7 @@ Toolbox.prototype = {
|
|||
setToolboxButtonsVisibility: function () {
|
||||
this.toolboxButtons.forEach(buttonSpec => {
|
||||
let { visibilityswitch, button, isTargetSupported } = buttonSpec;
|
||||
let on = true;
|
||||
try {
|
||||
on = Services.prefs.getBoolPref(visibilityswitch);
|
||||
} catch (ex) {
|
||||
// Do nothing.
|
||||
}
|
||||
let on = Services.prefs.getBoolPref(visibilityswitch, true);
|
||||
|
||||
on = on && isTargetSupported(this.target);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue