refresh register when click on account deactivated status

This commit is contained in:
Gaelle Braud 2025-12-02 16:06:32 +01:00
parent 21e8e2aaba
commit 605ffdcdd5
2 changed files with 17 additions and 5 deletions

View file

@ -95,7 +95,21 @@ Control.Control{
}
}
}
ContactStatusPopup{}
Item {
Layout.minimumWidth: Utils.getSizeWithScreenRatio(86)
Layout.maximumWidth: Utils.getSizeWithScreenRatio(150)
width: contactStatusPopup.width
height: contactStatusPopup.height
ContactStatusPopup{
id: contactStatusPopup
}
MouseArea {
anchors.fill: contactStatusPopup
enabled: !contactStatusPopup.enabled
cursorShape: Qt.PointingHandCursor
onClicked: mainItem.account.core.lSetRegisterEnabled(true)
}
}
Item{
Layout.preferredWidth: Utils.getSizeWithScreenRatio(26)
Layout.preferredHeight: Utils.getSizeWithScreenRatio(26)

View file

@ -13,10 +13,8 @@ import 'qrc:/qt/qml/Linphone/view/Style/buttonStyle.js' as ButtonStyle
PopupButton {
id: presenceAndRegistrationItem
Layout.minimumWidth: Utils.getSizeWithScreenRatio(86)
Layout.maximumWidth: Utils.getSizeWithScreenRatio(150)
Layout.preferredHeight: Utils.getSizeWithScreenRatio(24)
Layout.preferredWidth: presenceOrRegistrationText.implicitWidth + Utils.getSizeWithScreenRatio(50)
width: presenceOrRegistrationText.implicitWidth + Utils.getSizeWithScreenRatio(50)
height: Utils.getSizeWithScreenRatio(24)
enabled: mainItem.account && mainItem.account.core.registrationState === LinphoneEnums.RegistrationState.Ok
onEnabledChanged: if(!enabled) close()
property bool editCustomStatus : false