|
@@ -103,6 +103,7 @@ Window {
|
|
width: source.width
|
|
width: source.width
|
|
height: source.height
|
|
height: source.height
|
|
live: false // Will only be updated, when explicitly called for
|
|
live: false // Will only be updated, when explicitly called for
|
|
|
|
+
|
|
function save() {
|
|
function save() {
|
|
scheduleUpdate() // explicitly update. grabToImage() will force rendering afterwards.
|
|
scheduleUpdate() // explicitly update. grabToImage() will force rendering afterwards.
|
|
sourceShader.grabToImage(function(result) {
|
|
sourceShader.grabToImage(function(result) {
|
|
@@ -118,6 +119,7 @@ Window {
|
|
running: true
|
|
running: true
|
|
onTriggered: {
|
|
onTriggered: {
|
|
sourceShader.save()
|
|
sourceShader.save()
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|