on xenial help sign in
Simplify code
0c7e719Daniel d'Andrada
qml/Stages/ApplicationWindow.qml+1−6
@@ -201,12 +201,7 @@ FocusScope {
201 objectName: "promptSurfacesRepeater"
201 objectName: "promptSurfacesRepeater"
202 // show only along with the top-most application surface
202 // show only along with the top-most application surface
203 model: {
203 model: {
204− if (!root.application) {
205− return null;
206− }
207−
208− if (root.application.surfaceList.count === 0
209− || root.surface === root.application.surfaceList.first) {
204+ if (root.application && root.surface === root.application.surfaceList.first) {
210 return root.application.promptSurfaceList;
205 return root.application.promptSurfaceList;
211 } else {
206 } else {
212 return null;
207 return null;