mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-16 18:07:02 -04:00
Make aftersave void
This commit is contained in:
parent
7c95d3a729
commit
ebfaf54263
3 changed files with 18 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue