From 8af1daaa39f219ebfae5e92b13190ddec9641ba8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Sun, 29 Sep 2024 18:23:42 -1000 Subject: [PATCH] Move `Component.onCompleted` at the end This is used to trigger an action when the page has finished being built and is now ready for use. Instead of having this code at the end of the definition of the SilicaListView at the end of the SilicaFlickable, put it directly at the end of the Page itself. In next commits, we are going to move code around, and this will make maintainers life easier when reviewing changes by minimizing the size of the diffs. --- qml/pages/MainView.qml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qml/pages/MainView.qml b/qml/pages/MainView.qml index 0f3f9b9..0da3da1 100644 --- a/qml/pages/MainView.qml +++ b/qml/pages/MainView.qml @@ -322,11 +322,11 @@ Page { } } VerticalScrollDecorator{} - - Component.onCompleted: { - // Load list of OTP-Entries - refreshOTPList(); - } } } + + Component.onCompleted: { + // Load list of OTP-Entries + refreshOTPList(); + } }