@@ -42,22 +42,6 @@ Item {
4242 surface: model.surface
4343 promptSurfaces: model.application.promptSurfaces
4444
45− property bool appHasCreatedASurface: false
46−
47− onSurfaceChanged: {
48− if (surface) {
49− if (!appHasCreatedASurface) {
50− surface.visible = false; // hide until splash screen removed
51− appHasCreatedASurface = true;
52− }
53− }
54− }
55−
56− function revealSurface() {
57− surface.visible = true;
58− splashLoader.source = "";
59− }
60−
6145 Binding {
6246 target: surfaceContainer.surface
6347 property: "anchors.topMargin"
@@ -77,12 +61,6 @@ Item {
7761 value: root.interactive
7862 }
7963
80− Timer { //FIXME - need to delay removing splash screen to allow surface resize to complete
81− id: surfaceRevealDelay
82− interval: 100
83− onTriggered: surfaceContainer.revealSurface()
84− }
85−
8664 Connections {
8765 target: surface
8866 // FIXME: I would rather not need to do this, but currently it doesn't get
@@ -117,36 +95,6 @@ Item {
11795 }
11896 }
11997
120−
121− StateGroup {
122− id: appSurfaceState
123− states: [
124− State {
125− name: "noSurfaceYet"
126− when: !surfaceContainer.appHasCreatedASurface
127− StateChangeScript {
128− script: { splashLoader.setSource("Splash.qml", { "name": model.name, "image": model.icon }); }
129− }
130− },
131− State {
132− name: "hasSurface"
133− when: surfaceContainer.appHasCreatedASurface && (surfaceContainer.surface !== null)
134− StateChangeScript { script: { surfaceRevealDelay.start(); } }
135− },
136− State {
137− name: "surfaceLostButAppStillAlive"
138− when: surfaceContainer.appHasCreatedASurface && (surfaceContainer.surface === null)
139− // TODO - use app snapshot
140− }
141− ]
142− state: "noSurfaceYet"
143− }
144−
145− Loader {
146− id: splashLoader
147− anchors.fill: surfaceContainer
148− }
149−
15098 DraggingArea {
15199 id: dragArea
152100 anchors.fill: parent