fix(Onboarding): Image is visible after first onboard. Other minor fixes (#10489)
This commit is contained in:
parent
f1633d3f42
commit
3ff97c9137
|
@ -407,7 +407,8 @@ method onNodeLogin*[T](self: Module[T], error: string) =
|
|||
self.logoutAndDisplayError(err, StartupErrorType.UnknownType)
|
||||
return
|
||||
if currStateObj.flowType() != FlowType.AppLogin:
|
||||
discard self.controller.storeIdentityImage()
|
||||
let images = self.controller.storeIdentityImage()
|
||||
self.accountsService.updateLoggedInAccount(self.getDisplayName, images)
|
||||
self.delegate.finishAppLoading()
|
||||
else:
|
||||
self.moveToStartupState()
|
||||
|
@ -514,4 +515,4 @@ method onLocalPairingStatusUpdate*[T](self: Module[T], status: LocalPairingStatu
|
|||
self.view.onLocalPairingStatusUpdate(status)
|
||||
|
||||
method onReencryptionProcessStarted*[T](self: Module[T]) =
|
||||
self.view.onReencryptionProcessStarted()
|
||||
self.view.onReencryptionProcessStarted()
|
||||
|
|
|
@ -148,18 +148,7 @@ Item {
|
|||
input.edit.objectName: "onboardingDisplayNameInput"
|
||||
width: parent.width
|
||||
placeholderText: qsTr("Display name")
|
||||
input.rightComponent: RoundedIcon {
|
||||
width: 14
|
||||
height: 14
|
||||
iconWidth: 14
|
||||
iconHeight: 14
|
||||
visible: (nameInput.input.text.length > 0)
|
||||
color: "transparent"
|
||||
source: Style.svg("close-filled")
|
||||
onClicked: {
|
||||
nameInput.input.edit.clear();
|
||||
}
|
||||
}
|
||||
input.clearable: true
|
||||
errorMessageCmp.wrapMode: Text.NoWrap
|
||||
errorMessageCmp.horizontalAlignment: Text.AlignHCenter
|
||||
validators: Constants.validators.displayName
|
||||
|
|
|
@ -15,8 +15,8 @@ QtObject {
|
|||
property string icon: !!Global.userProfile? Global.userProfile.icon : ""
|
||||
property bool userDeclinedBackupBanner: Global.appIsReady? localAccountSensitiveSettings.userDeclinedBackupBanner : false
|
||||
property var privacyStore: profileSectionModule.privacyModule
|
||||
readonly property string keyUid: userProfile.keyUid
|
||||
readonly property bool isKeycardUser: userProfile.isKeycardUser
|
||||
readonly property string keyUid: !!Global.userProfile ? Global.userProfile.keyUid : ""
|
||||
readonly property bool isKeycardUser: !!Global.userProfile ? Global.userProfile.isKeycardUser : false
|
||||
|
||||
readonly property string bio: profileModule.bio
|
||||
readonly property string socialLinksJson: profileModule.socialLinksJson
|
||||
|
|
|
@ -435,7 +435,9 @@ QtObject {
|
|||
|
||||
function isEnsVerified(publicKey) {
|
||||
if (publicKey === "" || !isChatKey(publicKey) )
|
||||
return
|
||||
return false
|
||||
if (!mainModuleInst)
|
||||
return false
|
||||
return mainModuleInst.isEnsVerified(publicKey)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue