Skip to content

Commit b509639

Browse files
authored
ServiceWindow: move timer to loader (#98)
1 parent 6072cf0 commit b509639

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

Diff for: src/applicationcontrols/ServiceWindow.qml

+10-11
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ Rectangle {
168168
if (background !== discoveryPage) {
169169
background.parent = main;
170170
background.z = 1000;
171-
background.visible = false;
172171
}
173172
}
174173

@@ -198,6 +197,16 @@ Rectangle {
198197
easing.type: Easing.InCubic;
199198
}
200199
}
200+
201+
/* This timer is a workaround to make the discoveryPage invisible in QML designer */
202+
Timer {
203+
interval: 10
204+
repeat: false
205+
running: discoveryPage.active
206+
onTriggered: {
207+
discoveryPage.visible = true;
208+
}
209+
}
201210
}
202211

203212
/* the default discovery page, overlays the window as long as Machinetalk is not ready */
@@ -253,16 +262,6 @@ Rectangle {
253262
}
254263
}
255264

256-
/* This timer is a workaround to make the discoveryPage invisible in QML designer */
257-
Timer {
258-
interval: 10
259-
repeat: false
260-
running: true
261-
onTriggered: {
262-
background.visible = true;
263-
}
264-
}
265-
266265
state: ready ? "connected" : "disconnected"
267266

268267
states: [

0 commit comments

Comments
 (0)