mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-06 07:17:30 +09:00
[Pale-Moon] Issue MoonchildProductions/UXP#1360 - Pale Moon front-end changes
- Move some options around, group HWA together, and add localization strings for proper display.
This commit is contained in:
parent
34a4c07937
commit
0dae8965e5
4 changed files with 48 additions and 10 deletions
|
|
@ -51,6 +51,8 @@ var gAdvancedPane = {
|
|||
this.updateActualCacheSize();
|
||||
this.updateActualAppCacheSize();
|
||||
|
||||
this.updateHWADisplay();
|
||||
|
||||
// Notify observers that the UI is now ready
|
||||
Services.obs.notifyObservers(window, "advanced-pane-loaded", null);
|
||||
},
|
||||
|
|
@ -156,12 +158,21 @@ var gAdvancedPane = {
|
|||
updateHardwareAcceleration: function()
|
||||
{
|
||||
#ifdef XP_WIN
|
||||
var fromPref = document.getElementById("layers.acceleration.disabled");
|
||||
var fromPref = document.getElementById("layers.acceleration.enabled");
|
||||
var toPref = document.getElementById("gfx.direct2d.disabled");
|
||||
toPref.value = fromPref.value;
|
||||
toPref.value = !fromPref.value;
|
||||
#endif
|
||||
this.updateHWADisplay();
|
||||
},
|
||||
|
||||
updateHWADisplay: function()
|
||||
{
|
||||
#ifdef XP_LINUX
|
||||
let HWA = document.getElementById("layers.acceleration.enabled");
|
||||
document.getElementById("forceHWAccel").disabled = !HWA.value;
|
||||
#endif
|
||||
},
|
||||
|
||||
// DATA CHOICES TAB
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue