connect wiring on purchases

This commit is contained in:
Howard Stearns 2018-10-23 16:07:35 -07:00
parent 97bc84ed87
commit 7707d92a95

View file

@ -352,7 +352,11 @@ Rectangle {
anchors.bottom: tabButtonsContainer.top; anchors.bottom: tabButtonsContainer.top;
anchors.left: parent.left; anchors.left: parent.left;
anchors.right: parent.right; anchors.right: parent.right;
Connections {
onSendToScript: {
sendToScript(message);
}
}
} }
@ -822,7 +826,8 @@ Rectangle {
// Because we don't have "channels" for sending messages to a specific QML object, the messages are broadcast to all QML Items. If an Item of yours happens to be visible when some script sends a message with a method you don't expect, you'll get "Unrecognized message..." logs. // Because we don't have "channels" for sending messages to a specific QML object, the messages are broadcast to all QML Items. If an Item of yours happens to be visible when some script sends a message with a method you don't expect, you'll get "Unrecognized message..." logs.
break; break;
default: default:
console.log('Unrecognized message from wallet.js:', JSON.stringify(message)); // HRS FIXME console.log('Unrecognized message from wallet.js:', JSON.stringify(message));
walletInventory.fromScript(message);
} }
} }
signal sendToScript(var message); signal sendToScript(var message);