diff options
author | Michael J Mulligan <mike@belineperspectives.com> | 2021-03-06 01:32:45 +0300 |
---|---|---|
committer | Michael J Mulligan <mike@belineperspectives.com> | 2021-03-06 01:32:45 +0300 |
commit | a6247e1355427a56d6b45be31ed3d931efbe8750 (patch) | |
tree | 0bd73ccc975357934921ae64bad10fc0d39cc484 | |
parent | 7ef3c0277b084a9730210922b790372a2ec2c5d8 (diff) |
Initial allow CustomControls with multiple command lines. (untested)
-rwxr-xr-x | ui/ControlPanel.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/ControlPanel.go b/ui/ControlPanel.go index 7f981b9..e86ac85 100755 --- a/ui/ControlPanel.go +++ b/ui/ControlPanel.go @@ -81,7 +81,7 @@ func (this *controlPanel) getCustomControls() []*octoprint.ControlDefinition { for _, control := range response.Controls { for _, childControl := range control.Children { - if childControl.Command != "" || childControl.Script != "" { + if childControl.Command != "" || childControl.Script != "" || childControl.Commands != nil { controlDefinitions = append(controlDefinitions, childControl) } } |