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:
authorJeffB42 <10328858+JeffB42@users.noreply.github.com>2021-03-27 21:02:04 +0300
committerJeffB42 <10328858+JeffB42@users.noreply.github.com>2021-03-27 21:02:04 +0300
commitb6fdb9d695e8e474b55db86117c634e6e0d39682 (patch)
tree1d0bfea729f4fc9855796a1eb317348663d5ed7e
parent8bab1880a47835a625dbe864d8c1fd56b91c17c1 (diff)
cleaned up CommandButton.handleClicked() and ControlButton.handleClicked()2.7.0-dev
-rwxr-xr-xuiWidgets/CommandButton.go6
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)