mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-05 14:25:40 +00:00
Fix incorrect CurrentProfile in SteamController
This commit is contained in:
parent
a16a8d5387
commit
3947dbc4ec
2 changed files with 4 additions and 7 deletions
|
|
@ -154,15 +154,12 @@ namespace SteamController
|
|||
{
|
||||
if (sharedData.GetValue(out var value) && value.DesiredProfile != "")
|
||||
{
|
||||
lock (context)
|
||||
{
|
||||
context.SelectProfile(value.DesiredProfile);
|
||||
}
|
||||
context.SelectProfile(value.DesiredProfile);
|
||||
}
|
||||
|
||||
sharedData.SetValue(new SteamControllerSetting()
|
||||
{
|
||||
CurrentProfile = context.Profiles.FirstOrDefault((profile) => profile.Selected(context))?.Name,
|
||||
CurrentProfile = context.OrderedProfiles.FirstOrDefault((profile) => profile.Selected(context))?.Name ?? "",
|
||||
SelectableProfiles = context.Profiles.Where((profile) => profile.Selected(context) || profile.Visible).JoinWithN((profile) => profile.Name),
|
||||
});
|
||||
}
|
||||
|
|
@ -172,10 +169,9 @@ namespace SteamController
|
|||
lock (context)
|
||||
{
|
||||
context.Tick();
|
||||
SharedData_Update();
|
||||
}
|
||||
|
||||
SharedData_Update();
|
||||
|
||||
if (!context.Mouse.Valid)
|
||||
{
|
||||
notifyIcon.Text = TitleWithVersion + ". Cannot send input.";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue