@@ -94,15 +94,16 @@ FocusScope {
9494 antialiasing: !root.interactive
9595
9696 function take() {
97+ // Save memory by using a half-resolution (thus quarter size) screenshot.
98+ // Do not make this a binding, we can only take the screenshot once!
99+ sourceSize.width = root.width / 2;
100+ sourceSize.height = root.height / 2;
101+
97102 // Format: "image://application/$APP_ID/$CURRENT_TIME_MS"
98103 // eg: "image://application/calculator-app/123456"
99104 var timeMs = new Date().getTime();
100105 source = "image://application/" + root.application.appId + "/" + timeMs;
101106 }
102−
103− // Save memory by using a half-resolution (thus quarter size) screenshot
104− sourceSize.width: root.width / 2
105− sourceSize.height: root.height / 2
106107 }
107108
108109 Loader {