fixed a bug where updating the preset name would not immediately show the update

This commit is contained in:
Miodec 2023-01-14 01:20:44 +01:00
parent a5ceda8ac7
commit 43205d3287

View file

@ -129,6 +129,7 @@ async function apply(): Promise<void> {
(preset: MonkeyTypes.Preset) => preset._id === presetId
)[0];
preset.name = presetName;
preset.display = presetName.replace(/_/g, " ");
if (updateConfig) {
preset.config = configChanges;
}