Simplify code
commit0c7e719ff06c62b0ae1ba906fe2f7196f29913c7
authorDaniel d'Andrada <daniel.dandrada@canonical.com>
dateTue 17 May 2016, 16:56 (10 years ago)
parentc37448b
qml/Stages/ApplicationWindow.qml+1−6
@@ -201,12 +201,7 @@ FocusScope {
201201 objectName: "promptSurfacesRepeater"
202202 // show only along with the top-most application surface
203203 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) {
210205 return root.application.promptSurfaceList;
211206 } else {
212207 return null;