1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-09-10 12:03:18 +02:00

locationsharing: share button visibilty bug

binding of isSharingToCurrentConversation is now also done
when the webview is loaded (it was only done on conversationChange)

GitLab: #972

Change-Id: I5b767ed3f85334f97064112d125187b7093a1e26
This commit is contained in:
Nicolas Vengeon 2023-02-02 16:53:22 -05:00 committed by Sébastien Blin
parent 049cb4583a
commit 6498dadd68
2 changed files with 3 additions and 2 deletions

View file

@ -219,6 +219,7 @@ Item {
PositionManager.startPositioning()
//load locations that were received before this conversation was opened
PositionManager.loadPreviousLocations(attachedAccountId);
isSharingToCurrentConversation = PositionManager.isPositionSharedToConv(attachedAccountId, currentConvId)
}
}
}
@ -230,7 +231,6 @@ Item {
StopSharingPositionPopup {
id: stopSharingPositionPopup
property alias attachedAccountId: root.attachedAccountId
}
}
}

View file

@ -98,7 +98,8 @@ ColumnLayout {
textLeftPadding: JamiTheme.buttontextPadding
textRightPadding: JamiTheme.buttontextPadding
primary: true
visible: !isSharingToCurrentConversation && !isUnpin
visible: !isSharingToCurrentConversation && !isUnpin && webView.isLoaded
text: JamiStrings.shareLocation
color: isError
? JamiTheme.buttonTintedGreyInactive