Skip to content

Commit

Permalink
Fix #118: apply and ok button in preferences not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingo Wennemaring committed Aug 21, 2016
1 parent 0e79d02 commit 60bd0d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion content/_lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ function aios_setTargets() {


// Oeffnen des Download-Fensters verhindern, wenn die Sidebar genutzt werden soll
if(AiOS_HELPER.prefBranchAiOS.getBoolPref('dm.sidebar')) AiOS_HELPER.prefService.setBoolPref("browser.download.manager.showWhenStarting", false);
if(AiOS_HELPER.prefBranchAiOS.getBoolPref('dm.sidebar')) AiOS_HELPER.prefBranchAiOS.setBoolPref("browser.download.manager.showWhenStarting", false);


// Download-Observer hinzufuegen, falls Downloads in der Sidebar geoeffnet werden sollen
Expand Down
6 changes: 3 additions & 3 deletions content/prefs/prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,13 +548,13 @@ function aios_applyPrefs() {

switch(pType) {
case "string":
AiOS_HELPER.prefService.setCharPref(pName, pValue);
AiOS_HELPER.prefBranchAiOS.setCharPref(pName, pValue);
break;
case "bool":
AiOS_HELPER.prefService.setBoolPref(pName, pValue);
AiOS_HELPER.prefBranchAiOS.setBoolPref(pName, pValue);
break;
case "int":
AiOS_HELPER.prefService.setIntPref(pName, pValue);
AiOS_HELPER.prefBranchAiOS.setIntPref(pName, pValue);
break;
}
}
Expand Down

0 comments on commit 60bd0d7

Please sign in to comment.