summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>2024-10-12 20:15:03 +0900
committerNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>2024-10-13 01:33:10 +0900
commitbfbac0b1f78962e19ceac8356a6c0c77ccce795b (patch)
treebe4721e2664f3dafdf3f243bc6eb6cc057fd9721
parent88fb60ad9d0c673f868d907ca451462ec16c9d7f (diff)
Enable automatic default screen changeHEADtrout_19.90.0trout/19.90.019.90.0master
Exist momiscreen show background screen after booting. This patch enable automatic change screen to default app in case of default app launched. Bug-AGL: SPEC-5162 Change-Id: I0a1bc0286ab893442ca8ea5a2c7249c95ad664ce Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
-rw-r--r--main.qml20
1 files changed, 19 insertions, 1 deletions
diff --git a/main.qml b/main.qml
index dde3849..8014f3c 100644
--- a/main.qml
+++ b/main.qml
@@ -17,7 +17,6 @@ WaylandCompositor {
width: 1920
height: 1080
color: "#004f00"
- //flags: Qt.FramelessWindowHint
visible: true
Image {
id: backgroundAGL
@@ -305,6 +304,8 @@ WaylandCompositor {
}
IviApplication {
+ property int defaultAppIviSurfaceIDpathcounter : 2010
+
onIviSurfaceCreated: (iviSurface) => {
var surfaceArea;
var validValue = true;
@@ -328,6 +329,23 @@ WaylandCompositor {
z: 10
} );
}
+
+ if (iviSurface.iviId === defaultAppIviSurfaceIDpathcounter) {
+ if (defaultAppIviSurfaceIDpathcounter === 2010) {
+ mainScreenWindow.hideAppList();
+ appLayer2010.showApp();
+ } else if (defaultAppIviSurfaceIDpathcounter === 2011) {
+ mainScreenWindow.hideAppList();
+ appLayer2011.showApp();
+ } else if (defaultAppIviSurfaceIDpathcounter === 2012) {
+ mainScreenWindow.hideAppList();
+ appLayer2012.showApp();
+ } else if (defaultAppIviSurfaceIDpathcounter === 2013) {
+ mainScreenWindow.hideAppList();
+ appLayer2013.showApp();
+ }
+
+ }
}
}
}