Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Neil Dorin 2026-05-08 13:19:46 -06:00 committed by GitHub
parent 8ba993ed66
commit f1ef479301
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -171,14 +171,14 @@ namespace PepperDash.Core.WebApi.Presets
J2SMaster.LoadWithJson(preset.Data);
if (handler != null)
PresetReceived(this, new PresetReceivedEventArgs(preset, true));
handler(this, new PresetReceivedEventArgs(preset, true));
}
else // no existing preset
{
CurrentPreset = new Preset();
LoadDefaultPresetData();
if (handler != null)
PresetReceived(this, new PresetReceivedEventArgs(null, false));
handler(this, new PresetReceivedEventArgs(null, false));
}
}
catch (HttpException e)