mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-03-01 10:35:38 +01:00
SteamController: Avoid deadlock when changing profile
This commit is contained in:
parent
2bd3e73c91
commit
2626e9bacf
|
|
@ -24,3 +24,4 @@
|
|||
- Support SMU of Vangogh GPU shipped with BIOS 113
|
||||
- Fix Steam Game detection when in X360 controller mode
|
||||
- Hold-press Guide button for 100ms in X360 mode
|
||||
- Avoid deadlock when changing profile
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@ namespace SteamController
|
|||
if (i != selectedProfile)
|
||||
{
|
||||
selectedProfile = i;
|
||||
ProfileChanged(profile);
|
||||
OnProfileChanged(profile);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
@ -190,7 +190,7 @@ namespace SteamController
|
|||
continue;
|
||||
|
||||
selectedProfile = idx;
|
||||
ProfileChanged(profile);
|
||||
OnProfileChanged(profile);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -204,5 +204,11 @@ namespace SteamController
|
|||
if (SelectDefault is not null)
|
||||
SelectDefault();
|
||||
}
|
||||
|
||||
private void OnProfileChanged(Profiles.Profile profile)
|
||||
{
|
||||
System.Windows.Threading.Dispatcher.CurrentDispatcher.BeginInvoke(
|
||||
new Action(() => ProfileChanged(profile)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue