Skip to content

Commit 22cda7f

Browse files
committed
IconControl: fix update events for Windows
1 parent db6f949 commit 22cda7f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

SimpleWeather.Windows/Main/WeatherNow.xaml.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ public ElementTheme ControlTheme
8080

8181
private bool UpdateBindings = false;
8282
private bool UpdateTheme = false;
83-
private bool ClearGraphIconCache = false;
8483

8584
public WeatherNow()
8685
{
@@ -169,7 +168,6 @@ private void Settings_OnSettingsChanged(SettingsChangedEventArgs e)
169168
if (e.Key == SettingsManager.KEY_ICONSSOURCE)
170169
{
171170
// When page is loaded again from cache, clear icon cache
172-
ClearGraphIconCache = true;
173171
UpdateBindings = true;
174172
}
175173
else if (e.Key == SettingsManager.KEY_USERTHEME)
@@ -420,12 +418,6 @@ protected override void OnNavigatedTo(NavigationEventArgs e)
420418
UpdateTheme = false;
421419
}
422420

423-
if (ClearGraphIconCache)
424-
{
425-
WeatherBox?.UpdateWeatherIcon();
426-
ClearGraphIconCache = false;
427-
}
428-
429421
if (UpdateBindings)
430422
{
431423
this.Bindings.Update();

0 commit comments

Comments
 (0)