mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-05 10:12:46 +00:00
Fix MainPage being empty after first login
This commit is contained in:
parent
6442bda9b8
commit
c700f9c374
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue