on xenial help sign in
split into a new line
e8165feAlbert Astals Cid
qml/Stages/ApplicationWindow.qml+2−1
@@ -55,7 +55,8 @@ FocusScope {
55 property bool hadSurface: sessionContainer.surfaceContainer.hadSurface
55 property bool hadSurface: sessionContainer.surfaceContainer.hadSurface
56
56
57 property bool needToTakeScreenshot:
57 property bool needToTakeScreenshot:
58+ sessionContainer.surface && d.surfaceInitialized
58− sessionContainer.surface && d.surfaceInitialized && (d.applicationState === ApplicationInfoInterface.Stopped || d.applicationState === ApplicationInfoInterface.Suspended)
59+ && (d.applicationState === ApplicationInfoInterface.Stopped || d.applicationState === ApplicationInfoInterface.Suspended)
59 onNeedToTakeScreenshotChanged: {
60 onNeedToTakeScreenshotChanged: {
60 if (needToTakeScreenshot) {
61 if (needToTakeScreenshot) {
61 screenshoter.take();
62 screenshoter.take();