Bug 128377, Generalize Turbo Code

r=law, sr=alecf, r=ssu, sr=slogan a=asa
This commit is contained in:
jelwell%netscape.com 2006-05-17 02:32:07 +00:00
Родитель 78e5631229
Коммит 285320317f
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -82,7 +82,7 @@
}
var winhooksService = Components.classes["@mozilla.org/winhooks;1"].getService(Components.interfaces.nsIWindowsHooks);
if (winhooksService) {
parent.isTurboEnabled = winhooksService.isStartupTurboEnabled();
parent.isTurboEnabled = winhooksService.isOptionEnabled("-turbo");
document.getElementById("enableTurbo").checked = parent.isTurboEnabled;
}
@ -111,9 +111,9 @@
var winhooksService = Components.classes["@mozilla.org/winhooks;1"].getService(Components.interfaces.nsIWindowsHooks);
if (winhooksService && parent.isTurboEnabled != -1) {
if (parent.isTurboEnabled)
winhooksService.startupTurboEnable();
winhooksService.startupAddOption("-turbo");
else
winhooksService.startupTurboDisable();
winhooksService.startupRemoveOption("-turbo");
var appShell = Components.classes['@mozilla.org/appshell/appShellService;1'].getService();
appShell = appShell.QueryInterface( Components.interfaces.nsIAppShellService );
var nativeAppSupport = null;