mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-26 08:31:49 +01:00
Switch active profile when new profile is created
This commit is contained in:
parent
c468514002
commit
1e148ba121
@ -1284,6 +1284,11 @@ Properties.Resources.DS4Update, MessageBoxButton.YesNo, MessageBoxImage.Question
|
||||
private void Editor_CreatedProfile(ProfileEditor sender, string profile)
|
||||
{
|
||||
profileListHolder.AddProfileSort(profile);
|
||||
int devnum = sender.DeviceNum;
|
||||
if (devnum >= 0 && devnum+1 <= conLvViewModel.ControllerCol.Count)
|
||||
{
|
||||
conLvViewModel.ControllerCol[devnum].ChangeSelectedProfile(profile);
|
||||
}
|
||||
}
|
||||
|
||||
private void NotifyIcon_TrayMouseDoubleClick(object sender, RoutedEventArgs e)
|
||||
|
@ -52,6 +52,7 @@ namespace DS4WinWPF.DS4Forms
|
||||
private bool keepsize;
|
||||
private bool controllerReadingsTabActive = false;
|
||||
public bool Keepsize { get => keepsize; }
|
||||
public int DeviceNum { get => deviceNum; }
|
||||
|
||||
private NonFormTimer inputTimer;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user