diff options
author | Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp> | 2024-10-12 20:15:03 +0900 |
---|---|---|
committer | Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp> | 2024-10-13 01:33:10 +0900 |
commit | bfbac0b1f78962e19ceac8356a6c0c77ccce795b (patch) | |
tree | be4721e2664f3dafdf3f243bc6eb6cc057fd9721 | |
parent | 88fb60ad9d0c673f868d907ca451462ec16c9d7f (diff) |
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.qml | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -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(); + } + + } } } } |