Skip to content

Commit

Permalink
fix #149 (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sben65 authored Feb 1, 2022
1 parent 8c17e66 commit 4223b3e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,12 @@

private void AddCommand()
{
DeviceModel.Commands.Add(new DeviceModelCommand());
var last = DeviceModel.Commands.LastOrDefault();

if (DeviceModel.Commands.Count == 0 || (last.Name is not null && last.Frame is not null) )
{
DeviceModel.Commands.Add(new DeviceModelCommand());
}
}

private void DeleteCommand(DeviceModelCommand item)
Expand Down

0 comments on commit 4223b3e

Please sign in to comment.