From 6bdcb6cb23747a060b0346cf90e81e5e97e310fe Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Mon, 13 Nov 2017 03:05:06 +0100 Subject: [PATCH] also pass settings to callback --- src/interface/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interface/index.js b/src/interface/index.js index 6bbb6ef..4852346 100644 --- a/src/interface/index.js +++ b/src/interface/index.js @@ -169,7 +169,7 @@ class Interface extends React.Component { render() { const { width, height, classes, onCompleteActions } = this.props; - const { sliced, isSlicing, progress, gcode, controlMode } = this.state; + const { sliced, isSlicing, progress, gcode, controlMode, settings } = this.state; return (
@@ -207,7 +207,7 @@ class Interface extends React.Component { {sliced && {onCompleteActions.map(({ title, callback }, i) => ( - callback(gcode.gcode)} primary label={title} /> + callback(gcode.gcode, settings)} primary label={title} /> ))} } {isSlicing &&