biffed getting of js/java prefs at panel init

This commit is contained in:
pinkerton%netscape.com 2003-04-25 17:56:47 +00:00
Родитель 4642e4b8d3
Коммит eb030d87ea
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -27,11 +27,11 @@
BOOL gotPref = NO;
// Set initial value on Java/JavaScript checkboxes
BOOL jsEnabled = [self getStringPref:"javascript.enabled" withSuccess:&gotPref] && gotPref;
BOOL jsEnabled = [self getBooleanPref:"javascript.enabled" withSuccess:&gotPref] && gotPref;
[mEnableJS setState:jsEnabled];
BOOL javaEnabled = [self getStringPref:"security.enable_java" withSuccess:&gotPref] && gotPref;
BOOL javaEnabled = [self getBooleanPref:"security.enable_java" withSuccess:&gotPref] && gotPref;
[mEnableJava setState:javaEnabled];
BOOL pluginsEnabled = [self getStringPref:"chimera.enable_plugins" withSuccess:&gotPref] && gotPref;
BOOL pluginsEnabled = [self getBooleanPref:"chimera.enable_plugins" withSuccess:&gotPref] && gotPref;
[mEnablePlugins setState:pluginsEnabled];
// set initial value on popup blocking checkbox and disable the whitelist