mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 03:18:07 +00:00
refresh register when click on account deactivated status
This commit is contained in:
parent
21e8e2aaba
commit
605ffdcdd5
2 changed files with 17 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue