mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-22 17:29:18 +01:00
Reload Special Action list in Profile after creating a new Special Action
This commit is contained in:
parent
164fbd5154
commit
43f183e05b
@ -1051,12 +1051,14 @@ namespace DS4WinWPF.DS4Forms
|
|||||||
};
|
};
|
||||||
actEditor.Saved += (sender2, actionName) =>
|
actEditor.Saved += (sender2, actionName) =>
|
||||||
{
|
{
|
||||||
DS4Windows.SpecialAction action = DS4Windows.Global.GetAction(actionName);
|
SpecialAction action = Global.GetAction(actionName);
|
||||||
SpecialActionItem newitem = specialActionsVM.CreateActionItem(action);
|
SpecialActionItem newitem = specialActionsVM.CreateActionItem(action);
|
||||||
newitem.Active = true;
|
newitem.Active = true;
|
||||||
specialActionsVM.ActionCol.Add(newitem);
|
specialActionsVM.ActionCol.Add(newitem);
|
||||||
specialActionDockPanel.Children.Remove(actEditor);
|
specialActionDockPanel.Children.Remove(actEditor);
|
||||||
baseSpeActPanel.Visibility = Visibility.Visible;
|
baseSpeActPanel.Visibility = Visibility.Visible;
|
||||||
|
|
||||||
|
specialActionsVM.ExportEnabledActions();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user