1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2024-11-22 01:05: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: { onStatusChanged: {
if (status == PageStatus.Active) { if (status == PageStatus.Active) {
appWindow.itemData = null appWindow.itemData = null
if (!_modelsLoaded && ApiClient.authenticated) loadModels()
} }
} }
Connections { Connections {
target: ApiClient target: ApiClient
onAuthenticatedChanged: { onAuthenticatedChanged: {
if (authenticated && !_modelsLoaded) loadModels(); if (authenticated /*&& !_modelsLoaded*/) loadModels();
} }
} }