on xenial help sign in
Display trust prompts when the app has no surface too
0fbbe18Ratchanan Srirattanamet
qml/Stage/ApplicationWindow.qml+3−1
@@ -201,7 +201,9 @@ 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 && (
204− if (root.application && root.surface === root.application.surfaceList.first) {
205+ root.surface === root.application.surfaceList.first ||
206+ root.application.surfaceList.count === 0)) {
205 return root.application.promptSurfaceList;
207 return root.application.promptSurfaceList;
206 } else {
208 } else {
207 return null;
209 return null;