BDPluginLibrary
BDPluginLibrary copied to clipboard
Utilities.loadData
the saved data is [] and the defaultData is ["ctrl","f"] , Utilities.loadData loads defaultData intead of the saved data
new issue, i tried using a single object to counter this issue, the saved data is
{
"currentVersionInfo": {
"version": "1.6.1",
"hasShownChangelog": true
},
"settings": {
"statusPicker": true,
"userPanel": true,
"playAudio": true,
"showToast": true,
"keybind": []
}
}
and the default data is
const defaultSettings = {
statusPicker: true,
userPanel: true,
playAudio: true,
showToast: true,
keybind: ["ctrl", "shift", "g"]
}
by using
Utilities.loadData(
config.info.name,
"settings",
defaultSettings
);
to load settings it loads
{
statusPicker: true,
userPanel: true,
playAudio: true,
showToast: true,
keybind: ["ctrl", "shift", "g"]
}
but the keybind propety should be empty
Please try with the latest version