fix: make user profile images in context menu and popup work again
This commit is contained in:
parent
d814484c72
commit
d6366edb9e
|
@ -130,7 +130,7 @@ Item {
|
||||||
if(parentPopup){
|
if(parentPopup){
|
||||||
popup.parentPopup = parentPopup;
|
popup.parentPopup = parentPopup;
|
||||||
}
|
}
|
||||||
popup.openPopup(profileModel.profile.pubKey !== fromAuthorParam, userNameParam, fromAuthorParam, identiconParam, textParam, nicknameParam);
|
popup.openPopup(profileModule.pubKey !== fromAuthorParam, userNameParam, fromAuthorParam, identiconParam, textParam, nicknameParam);
|
||||||
profilePopupOpened = true
|
profilePopupOpened = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -353,7 +353,7 @@ Item {
|
||||||
navBarProfileButton: StatusNavBarTabButton {
|
navBarProfileButton: StatusNavBarTabButton {
|
||||||
id: profileButton
|
id: profileButton
|
||||||
property bool opened: false
|
property bool opened: false
|
||||||
icon.source: profileModel.profile.thumbnailImage || ""
|
icon.source: profileModule.thumbnailImage || ""
|
||||||
badge.visible: true
|
badge.visible: true
|
||||||
badge.anchors.rightMargin: 4
|
badge.anchors.rightMargin: 4
|
||||||
badge.anchors.topMargin: 25
|
badge.anchors.topMargin: 25
|
||||||
|
|
|
@ -29,7 +29,7 @@ PopupMenu {
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.topMargin: 4
|
anchors.topMargin: 4
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
image.source: profileModel.profile.thumbnailImage || ""
|
image.source: profileModule.thumbnailImage || ""
|
||||||
image.isIdenticon: true
|
image.isIdenticon: true
|
||||||
}
|
}
|
||||||
StyledText {
|
StyledText {
|
||||||
|
@ -70,7 +70,7 @@ PopupMenu {
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.PointingHandCursor
|
||||||
onClicked: {
|
onClicked: {
|
||||||
openProfilePopup(profileModel.profile.username, profileModel.profile.pubKey, profileModel.profile.thumbnailImage || "");
|
openProfilePopup(profileModule.username, profileModule.pubKey, profileModule.thumbnailImage || "");
|
||||||
root.close()
|
root.close()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -85,8 +85,8 @@ PopupMenu {
|
||||||
Action {
|
Action {
|
||||||
text: qsTr("Online")
|
text: qsTr("Online")
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
if (profileModel.profile.sendUserStatus != true) {
|
if (profileModule.sendUserStatus != true) {
|
||||||
profileModel.setSendUserStatus(true)
|
profileModule.setSendUserStatus(true)
|
||||||
}
|
}
|
||||||
root.close()
|
root.close()
|
||||||
}
|
}
|
||||||
|
@ -99,8 +99,8 @@ PopupMenu {
|
||||||
Action {
|
Action {
|
||||||
text: qsTr("Offline")
|
text: qsTr("Offline")
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
if (profileModel.profile.sendUserStatus != false) {
|
if (profileModule.sendUserStatus != false) {
|
||||||
profileModel.setSendUserStatus(false)
|
profileModule.setSendUserStatus(false)
|
||||||
}
|
}
|
||||||
root.close()
|
root.close()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue