1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2024-12-22 22:15:17 +00:00

Fix MainPage being empty after first login

This commit is contained in:
Chris Josten 2020-09-26 03:21:58 +02:00
parent 6442bda9b8
commit c700f9c374

View file

@ -123,13 +123,14 @@ Page {
onStatusChanged: {
if (status == PageStatus.Active) {
appWindow.itemData = null
if (!_modelsLoaded && ApiClient.authenticated) loadModels()
}
}
Connections {
target: ApiClient
onAuthenticatedChanged: {
if (authenticated && !_modelsLoaded) loadModels();
if (authenticated /*&& !_modelsLoaded*/) loadModels();
}
}