Skip to content

Commit

Permalink
fix StackOverflowException when using OnThemeChanged (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolframhaussig authored Feb 25, 2024
1 parent 95b7f4e commit 8c429af
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 8c429af

Please sign in to comment.