Skip to content

Commit

Permalink
fix StackOverflowException when using OnThemeChanged
Browse files Browse the repository at this point in the history
  • Loading branch information
wolframhaussig committed Feb 25, 2024
1 parent 95b7f4e commit 14a6f30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WinFormsThemes/WinFormsThemes/ThemeConfig/ThemeRegistry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ public ITheme? CurrentTheme
ITheme? newTheme = CurrentThemeSelector(this);
if (newTheme != _current)
{
OnThemeChanged?.Invoke(this, EventArgs.Empty);
_current = newTheme;
OnThemeChanged?.Invoke(this, EventArgs.Empty);
}
return newTheme;
}
Expand Down

0 comments on commit 14a6f30

Please sign in to comment.