diff options
author | JeffB42 <10328858+JeffB42@users.noreply.github.com> | 2021-03-27 21:02:04 +0300 |
---|---|---|
committer | JeffB42 <10328858+JeffB42@users.noreply.github.com> | 2021-03-27 21:02:04 +0300 |
commit | b6fdb9d695e8e474b55db86117c634e6e0d39682 (patch) | |
tree | 1d0bfea729f4fc9855796a1eb317348663d5ed7e | |
parent | 8bab1880a47835a625dbe864d8c1fd56b91c17c1 (diff) |
cleaned up CommandButton.handleClicked() and ControlButton.handleClicked()2.7.0-dev
-rwxr-xr-x | uiWidgets/CommandButton.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/uiWidgets/CommandButton.go b/uiWidgets/CommandButton.go index a65bcb1..030d4c8 100755 --- a/uiWidgets/CommandButton.go +++ b/uiWidgets/CommandButton.go @@ -53,13 +53,13 @@ func (this *CommandButton) handleClicked() { } func (this *CommandButton) sendCommand() { - logger.Infof("CommandButton.sendCommand(), now sending command %q", this.controlDefinition.Name) - + logger.Infof("CommandButton.sendCommand(), now sending command %q", this.commandDefinition.Name) + commandRequest := &octoprintApis.SystemExecuteCommandRequest{ Source: dataModels.Custom, Action: this.commandDefinition.Action, } - + err := commandRequest.Do(this.client) if err != nil { logger.LogError("CommandButton.sendCommand()", "Do(SystemExecuteCommandRequest)", err) |