Skip to content

Commit f753ca6

Browse files
committed
ForecastsListViewModel: refresh source on main thread
1 parent 8651ba3 commit f753ca6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SimpleWeather.Uno/SimpleWeather.Uno.Shared/Controls/ViewModels/ForecastsListViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public void RefreshForecasts()
9696
}
9797
else
9898
{
99-
Forecasts.RefreshAsync();
99+
DispatcherQueue.EnqueueAsync(Forecasts.RefreshAsync);
100100
}
101101
}
102102

@@ -113,7 +113,7 @@ public void RefreshHourlyForecasts()
113113
}
114114
else
115115
{
116-
HourlyForecasts.RefreshAsync();
116+
DispatcherQueue.EnqueueAsync(HourlyForecasts.RefreshAsync);
117117
}
118118
}
119119

0 commit comments

Comments
 (0)