mirror of
https://github.com/seiichiro0185/sailotp.git
synced 2024-11-14 21:16:42 +00:00
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.
This commit is contained in:
parent
90314355e0
commit
8af1daaa39
1 changed files with 5 additions and 5 deletions
|
@ -322,11 +322,11 @@ Page {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
VerticalScrollDecorator{}
|
VerticalScrollDecorator{}
|
||||||
|
|
||||||
Component.onCompleted: {
|
|
||||||
// Load list of OTP-Entries
|
|
||||||
refreshOTPList();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Component.onCompleted: {
|
||||||
|
// Load list of OTP-Entries
|
||||||
|
refreshOTPList();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue