added author to eq preset for later use

This commit is contained in:
Swiftzerr 2022-01-31 21:34:19 -05:00
parent fbb44df30c
commit 38d1757d69

View file

@ -400,7 +400,7 @@
}, },
exportPreset() { exportPreset() {
const preset = app.cfg.audio.equalizer.presets.find(p => p.preset == app.cfg.audio.equalizer.preset) const preset = app.cfg.audio.equalizer.presets.find(p => p.preset == app.cfg.audio.equalizer.preset)
const jsonObj = {"name": preset.name, "frequency": preset.frequencies, "gain": preset.gain, "q": preset.Q, "preamp": preset.preamp, "mix": preset.mix, "vibrantBass": preset.vibrantBass}; const jsonObj = {"name": preset.name, "author": app.chrome.userinfo.attributes.name, "frequency": preset.frequencies, "gain": preset.gain, "q": preset.Q, "preamp": preset.preamp, "mix": preset.mix, "vibrantBass": preset.vibrantBass};
ipcRenderer.send("export-eq", JSON.stringify(jsonObj)) ipcRenderer.send("export-eq", JSON.stringify(jsonObj))
}, },
importPreset() { importPreset() {
@ -408,6 +408,7 @@
JSON.parse(result) JSON.parse(result)
let newPreset = new self.eqPreset() let newPreset = new self.eqPreset()
newPreset.name = result.name newPreset.name = result.name
newPreset.author = result.author
newPreset.frequencies = result.frequency newPreset.frequencies = result.frequency
newPreset.gain = result.gain newPreset.gain = result.gain
newPreset.Q = result.q newPreset.Q = result.q