Added error checking to EQ import

This commit is contained in:
Swiftzerr 2022-01-31 21:36:06 -05:00
parent 38d1757d69
commit 1a217e6358

View file

@ -417,6 +417,9 @@
newPreset.vibrantBass = result.vibrantBass newPreset.vibrantBass = result.vibrantBass
app.cfg.audio.equalizer.presets.push(newPreset) app.cfg.audio.equalizer.presets.push(newPreset)
notyf.success("Imported preset " + result.name) notyf.success("Imported preset " + result.name)
}).catch(err => {
console.error("[EQ Import] " + err)
notyf.error("Could not import preset")
}) })
}, },
applyPreset(preset) { applyPreset(preset) {