Make aftersave void

This commit is contained in:
thororen1234 2024-09-11 02:55:53 -04:00
parent 7c95d3a729
commit ebfaf54263
3 changed files with 18 additions and 4 deletions

View file

@ -126,15 +126,16 @@ export default function PluginModal({ plugin, onRestartNeeded, onClose, transiti
}
let restartNeeded = false;
if (plugin.name === "CustomSounds") restartNeeded = true;
for (const [key, value] of Object.entries(tempSettings)) {
const option = plugin.options[key];
pluginSettings[key] = value;
option?.onChange?.(value);
if (option?.restartNeeded) restartNeeded = true;
}
if (plugin.afterSave) {
plugin.afterSave();
}
if (restartNeeded) onRestartNeeded();
plugin.afterSave = true;
onClose();
}