Skip to content

Commit

Permalink
Undo some async stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
paulober committed Jan 6, 2023
1 parent b12edcf commit be22774
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ArcticControl/Views/DriversDetailControl.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@
<Grid>
<StackPanel x:Name="DownloadButtonDefaultContent" Orientation="Vertical">
<StackPanel Orientation="Horizontal">
<!--<SymbolIcon Symbol="Download"/>-->
<SymbolIcon Symbol="Download"/>
<TextBlock Margin="{StaticResource SmallRightMargin}" Text="Download"/>
<muxc:FontIcon FontFamily="Segoe Fluent Icons" Glyph="&#xe8a7;"/>
<!--<muxc:FontIcon FontFamily="Segoe Fluent Icons" Glyph="&#xe8a7;"/>-->
</StackPanel>
<muxc:ProgressBar
x:Name="DownloadProgressBar"
Expand Down
4 changes: 2 additions & 2 deletions ArcticControl/Views/PerformancePage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,13 @@ private async void FanSpeedSlider_ValueChanged(object sender, RangeBaseValueChan
await CheckWaiver();
}

private async void GridView_Loaded(object sender, Microsoft.UI.Xaml.RoutedEventArgs e)
private void GridView_Loaded(object sender, Microsoft.UI.Xaml.RoutedEventArgs e)
{
// The await causes the handler to return immediately.
//Task.Run(() => StartBackgroundTickTimer());
// Now update the UI with the results.
// ...
await Task.Run(() => ViewModel.StartBackgroundTickTimer(DispatcherQueue.GetForCurrentThread()));
ViewModel.StartBackgroundTickTimer(DispatcherQueue.GetForCurrentThread());
_waiverEnabled = true;
}

Expand Down

0 comments on commit be22774

Please sign in to comment.