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