Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Z-Bolt/OctoScreen.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael J Mulligan <mike@belineperspectives.com>2021-03-06 01:32:45 +0300
committerMichael J Mulligan <mike@belineperspectives.com>2021-03-06 01:32:45 +0300
commita6247e1355427a56d6b45be31ed3d931efbe8750 (patch)
tree0bd73ccc975357934921ae64bad10fc0d39cc484
parent7ef3c0277b084a9730210922b790372a2ec2c5d8 (diff)
Initial allow CustomControls with multiple command lines. (untested)
-rwxr-xr-xui/ControlPanel.go2
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)
}
}