mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-20 21:53:51 +00:00
Allow to select default profile
This commit is contained in:
parent
f4431105e3
commit
271cb5d94e
4 changed files with 92 additions and 6 deletions
|
|
@ -38,6 +38,11 @@ namespace SteamController
|
|||
|
||||
public Controller()
|
||||
{
|
||||
// Set available profiles
|
||||
ProfilesSettings.Helpers.ProfileNameConverter.Profiles = context.Profiles.
|
||||
Where((profile) => profile.Visible).
|
||||
Select((profile) => profile.Name).ToArray();
|
||||
|
||||
Instance.RunOnce(TitleWithVersion, "Global\\SteamController");
|
||||
|
||||
var contextMenu = new ContextMenuStrip(components);
|
||||
|
|
@ -114,7 +119,8 @@ namespace SteamController
|
|||
|
||||
context.SelectDefault = () =>
|
||||
{
|
||||
context.SelectProfile(Settings.Default.StartupProfile);
|
||||
if (!context.SelectProfile(Settings.Default.DefaultProfile))
|
||||
context.SelectProfile(context.Profiles.First().Name);
|
||||
};
|
||||
context.BackToDefault();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue