refactor(@desktop/general): connection to undefined prop fixed

An error `ReferenceError: mainModule is not defined` is fixed.
That started to happen when we moved registered context properties
from constructors to `load` proc, because of lazy context property
inatialization (after we ensure that a user is logged in), but main.qml is
loaded when the app start, when we don't have `mainModule` registered yet.
This commit is contained in:
Sale Djenic 2021-10-20 11:58:39 +02:00 committed by Iuri Matias
parent b2f2801d3d
commit 7a37c50958
1 changed files with 5 additions and 3 deletions

View File

@ -161,9 +161,11 @@ StatusWindow {
} }
Connections { Connections {
target: mainModule target: startupModule
onOpenStoreToKeychainPopup: { onAppStateChanged: {
storeToKeychainConfirmationPopup.open() mainModule.openStoreToKeychainPopup.connect(function(){
storeToKeychainConfirmationPopup.open()
})
} }
} }