mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-11-01 03:57:30 +09:00
Issue #991 Part 2: Basilisk
This commit is contained in:
parent
74e02af5af
commit
5d978c380c
13 changed files with 30 additions and 126 deletions
|
|
@ -275,7 +275,6 @@ var gSyncUI = {
|
|||
openPreferences("paneSync");
|
||||
},
|
||||
|
||||
|
||||
// Helpers
|
||||
_updateLastSyncTime: function SUI__updateLastSyncTime() {
|
||||
if (!gBrowser)
|
||||
|
|
|
|||
|
|
@ -2594,15 +2594,9 @@ var gMenuButtonUpdateBadge = {
|
|||
cancelObserverRegistered: false,
|
||||
|
||||
init: function () {
|
||||
try {
|
||||
this.enabled = Services.prefs.getBoolPref("app.update.badge");
|
||||
} catch (e) {}
|
||||
this.enabled = Services.prefs.getBoolPref("app.update.badge", false);
|
||||
if (this.enabled) {
|
||||
try {
|
||||
this.badgeWaitTime = Services.prefs.getIntPref("app.update.badgeWaitTime");
|
||||
} catch (e) {
|
||||
this.badgeWaitTime = 345600; // 4 days
|
||||
}
|
||||
this.badgeWaitTime = Services.prefs.getIntPref("app.update.badgeWaitTime", 345600); // 4 days
|
||||
Services.obs.addObserver(this, "update-staged", false);
|
||||
Services.obs.addObserver(this, "update-downloaded", false);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4151,11 +4151,7 @@
|
|||
return true;
|
||||
if (this._logInit)
|
||||
return this._shouldLog;
|
||||
let result = false;
|
||||
try {
|
||||
result = Services.prefs.getBoolPref("browser.tabs.remote.logSwitchTiming");
|
||||
} catch (ex) {
|
||||
}
|
||||
let result = Services.prefs.getBoolPref("browser.tabs.remote.logSwitchTiming", false);
|
||||
this._shouldLog = result;
|
||||
this._logInit = true;
|
||||
return this._shouldLog;
|
||||
|
|
@ -5225,11 +5221,7 @@
|
|||
window.addEventListener("resize", this, false);
|
||||
window.addEventListener("load", this, false);
|
||||
|
||||
try {
|
||||
this._tabAnimationLoggingEnabled = Services.prefs.getBoolPref("browser.tabs.animationLogging.enabled");
|
||||
} catch (ex) {
|
||||
this._tabAnimationLoggingEnabled = false;
|
||||
}
|
||||
this._tabAnimationLoggingEnabled = Services.prefs.getBoolPref("browser.tabs.animationLogging.enabled", false);
|
||||
this._browserNewtabpageEnabled = Services.prefs.getBoolPref("browser.newtabpage.enabled");
|
||||
]]>
|
||||
</constructor>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue