Reload Special Action list in Profile after creating a new Special Action

This commit is contained in:
Travis Nickles 2020-01-19 20:11:21 -06:00
parent 164fbd5154
commit 43f183e05b

View File

@ -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();
}; };
} }