mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Limit theme refresh to when color scheme is "System"
Previously, the theme was refreshed on every theme change event. Now, `_theme.RefreshFrameAsync()` is only called if the color scheme setting is set to "System", preventing unnecessary refreshes in other scenarios.
This commit is contained in:
parent
60b92c5b96
commit
5635783973
1 changed files with 4 additions and 1 deletions
|
|
@ -109,7 +109,10 @@ namespace Flow.Launcher
|
||||||
|
|
||||||
private void ViewModel_ActualApplicationThemeChanged(object sender, ActualApplicationThemeChangedEventArgs args)
|
private void ViewModel_ActualApplicationThemeChanged(object sender, ActualApplicationThemeChangedEventArgs args)
|
||||||
{
|
{
|
||||||
_ = _theme.RefreshFrameAsync();
|
if (_settings.ColorScheme == Constant.System)
|
||||||
|
{
|
||||||
|
_ = _theme.RefreshFrameAsync();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnSourceInitialized(object sender, EventArgs e)
|
private void OnSourceInitialized(object sender, EventArgs e)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue