https://bugzilla.mozilla.org/show_bug.cgi?id=568691 の変更によってプラットフォームごとの初期設定が読み込まれなくなっていたのを修正
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@7299 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
0916f4d058
commit
b09eeca43d
@ -147,4 +147,9 @@ pref("extensions.treestyletab.compatibility.TMP", true); // Tab Mix Plus
|
||||
pref("extensions.treestyletab.compatibility.STM.warnForNewTabPosition", true); // Super Tab Mode
|
||||
|
||||
|
||||
pref("extensions.treestyletab.platform.Darwin.tabbar.style", "metal");
|
||||
pref("extensions.treestyletab.platform.Darwin.indent.property.top", "margin-bottom");
|
||||
pref("extensions.treestyletab.platform.Linux.tabbar.style", "plain");
|
||||
|
||||
|
||||
pref("extensions.treestyletab.prefsVersion", 0);
|
||||
|
@ -248,7 +248,9 @@ var TreeStyleTabUtils = {
|
||||
{
|
||||
if (this._initialized) return;
|
||||
|
||||
this.isMac = this.XULAppInfo.OS.toLowerCase().indexOf('darwin') > -1;
|
||||
this.isMac = this.XULAppInfo.OS == 'Darwin';
|
||||
|
||||
this.applyPlatformDefaultPrefs();
|
||||
|
||||
this.addPrefListener(this);
|
||||
|
||||
@ -267,7 +269,7 @@ var TreeStyleTabUtils = {
|
||||
this.onPrefChange('extensions.treestyletab.twisty.expandSensitiveArea');
|
||||
|
||||
try {
|
||||
if (this.XULAppInfo.OS.toLowerCase().indexOf('winnt') > -1)
|
||||
if (this.XULAppInfo.OS == 'WINNT')
|
||||
this.updateAeroPeek();
|
||||
}
|
||||
catch(e) {
|
||||
@ -275,6 +277,13 @@ var TreeStyleTabUtils = {
|
||||
}
|
||||
},
|
||||
_initialized : false,
|
||||
applyPlatformDefaultPrefs : function TSTUtils_applyPlatformDefaultPrefs()
|
||||
{
|
||||
var OS = this.XULAppInfo.OS;
|
||||
this.getDescendant('extensions.treestyletab.platform.'+OS).forEach(function(aKey) {
|
||||
this.setDefaultPref(aKey.replace('platform.'+OS+'.', ''), this.getDefaultPref(aKey));
|
||||
}, this);
|
||||
},
|
||||
|
||||
updateAeroPeek : function TSTUtils_updateAeroPeek()
|
||||
{
|
||||
|
@ -1,2 +0,0 @@
|
||||
pref("extensions.treestyletab.tabbar.style", "metal");
|
||||
pref("extensions.treestyletab.indent.property.top", "margin-bottom");
|
@ -1 +0,0 @@
|
||||
pref("extensions.treestyletab.tabbar.style", "plain");
|
Loading…
x
Reference in New Issue
Block a user