Intermediate fix for LoadProfile Save crash

Related to issue #987
This commit is contained in:
Travis Nickles 2019-12-30 22:04:40 -06:00
parent 58d533b1ca
commit 694af58154

View File

@ -65,7 +65,7 @@ namespace DS4WinWPF.DS4Forms.ViewModels.SpecialActions
string profilename = profileList.ProfileListCol[profileIndex - 1].Name;
Global.SaveAction(action.name, action.controls, 3, profilename, edit,
action.ucontrols +
(autoUntrigger ? (action.ucontrols.Length > 0 ? "/" : "") + "AutomaticUntrigger" : ""));
(autoUntrigger ? ((action.ucontrols?.Length ?? 0) > 0 ? "/" : "") + "AutomaticUntrigger" : ""));
}
}