Skip to content

Commit

Permalink
Misc UI improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Valkirie committed Dec 25, 2024
1 parent fa6f49d commit 8cf9b92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions HandheldCompanion/Views/Pages/ProfilesPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private void GPUManager_Hooked(GPU GPU)
IsGPUScalingEnabled = GPU.GetGPUScaling();

// UI thread (async)
Application.Current.Dispatcher.BeginInvoke(() =>
Application.Current.Dispatcher.Invoke(() =>
{
// GPU-specific settings
StackProfileRSR.Visibility = GPUManager.GetCurrent() is AMDGPU ? Visibility.Visible : Visibility.Collapsed;
Expand Down Expand Up @@ -155,7 +155,7 @@ private void GPUManager_Unhooked(GPU GPU)
private void UpdateGraphicsSettingsUI()
{
// UI thread (async)
Application.Current.Dispatcher.BeginInvoke(() =>
Application.Current.Dispatcher.Invoke(() =>
{
StackProfileRSR.IsEnabled = HasRSRSupport;
StackProfileAFMF.IsEnabled = HasAFMFSupport;
Expand Down
4 changes: 2 additions & 2 deletions HandheldCompanion/Views/QuickPages/QuickProfilesPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ private void GPUManager_Hooked(GPU GPU)
IsGPUScalingEnabled = GPU.GetGPUScaling();

// UI thread (async)
Application.Current.Dispatcher.BeginInvoke(() =>
Application.Current.Dispatcher.Invoke(() =>
{
// GPU-specific settings
StackProfileRSR.Visibility = GPUManager.GetCurrent() is AMDGPU ? Visibility.Visible : Visibility.Collapsed;
Expand Down Expand Up @@ -240,7 +240,7 @@ private void GPUManager_Unhooked(GPU GPU)
private void UpdateGraphicsSettingsUI()
{
// UI thread (async)
Application.Current.Dispatcher.BeginInvoke(() =>
Application.Current.Dispatcher.Invoke(() =>
{
StackProfileRSR.IsEnabled = HasRSRSupport;
StackProfileAFMF.IsEnabled = HasAFMFSupport;
Expand Down

0 comments on commit 8cf9b92

Please sign in to comment.