holy balls optimization

This commit is contained in:
Maikiwi 2022-07-31 16:32:43 -07:00
parent 8a94bf247f
commit b4b6b0f988
8 changed files with 25 additions and 70 deletions

View file

@ -1007,8 +1007,8 @@ const app = new Vue({
try {localStorage.setItem("playingBitrate", app.mk.nowPlayingItem.flavor)}
catch(e) {}
}
if (!app.cfg.audio.normalization && app.cfg.advanced.AudioContext === false) { CiderAudio.hierarchical_loading(); }
if (app.cfg.audio.normalization === false) { CiderAudio.hierarchical_loading(); } // Just Reload for Adaptive CAP if norm is off
else {
// get unencrypted audio previews to get SoundCheck's normalization tag
try {
@ -4354,7 +4354,7 @@ const app = new Vue({
"id": "equalizer",
"icon": "../views/svg/speaker.svg",
"name": app.getLz('term.equalizer'),
"hidden": true,
"hidden": false,
"action": function () {
app.modals.equalizer = true
app.modals.audioSettings = false
@ -4364,7 +4364,7 @@ const app = new Vue({
"id": "audioLab",
"icon": "../views/svg/speaker.svg",
"name": app.getLz('settings.option.audio.audioLab'),
"hidden": true,
"hidden": false,
"action": function () {
app.openSettingsPage('audiolabs')
}
@ -4372,10 +4372,12 @@ const app = new Vue({
]
}
}
/*
if (this.cfg.advanced.AudioContext) {
menus.normal.items.find(i => i.id === 'audioLab').hidden = false
menus.normal.items.find(i => i.id === 'equalizer').hidden = false
}
*/
if (this.contextExt) {
if (this.contextExt.normal) {
menus.normal.items = menus.normal.items.concat(this.contextExt.normal)