From 693538b69921ea9e0fca12617e688d2eb305380b Mon Sep 17 00:00:00 2001 From: uncor3 Date: Mon, 8 Jun 2026 21:01:14 +0000 Subject: [PATCH] refactor(HowToConnect): remove loading timer and adjust layout properties for images --- src/ui/HowToConnect.qml | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/src/ui/HowToConnect.qml b/src/ui/HowToConnect.qml index 57456da..7cca079 100644 --- a/src/ui/HowToConnect.qml +++ b/src/ui/HowToConnect.qml @@ -14,14 +14,6 @@ Dialog { height: 560 property int currentIndex: 0 - property bool loading: true - - Timer { - id: loadTimer - interval: 300 - repeat: false - onTriggered: stateView.viewState = StateView.State.Content - } function updateNav() { prevBtn.enabled = dlg.currentIndex > 0 @@ -31,7 +23,6 @@ Dialog { onCurrentIndexChanged: updateNav() Component.onCompleted: { updateNav() - loadTimer.start() } background: Rectangle { @@ -83,8 +74,8 @@ Dialog { fillMode: Image.PreserveAspectFit smooth: true mipmap: true - Layout.preferredWidth: 200 - Layout.preferredHeight: 200 + Layout.fillWidth: true + Layout.fillHeight: true } Item { Layout.fillHeight: true } @@ -115,8 +106,8 @@ Dialog { fillMode: Image.PreserveAspectFit smooth: true mipmap: true - Layout.preferredWidth: 200 - Layout.preferredHeight: 200 + Layout.fillWidth: true + Layout.fillHeight: true } Item { Layout.fillHeight: true } @@ -153,8 +144,8 @@ Dialog { fillMode: Image.PreserveAspectFit smooth: true mipmap: true - Layout.preferredWidth: 200 - Layout.preferredHeight: 200 + Layout.fillWidth: true + Layout.fillHeight: true } Item { Layout.fillHeight: true }