fix(AccountStatus): remove presence choice if rls uri is disabled

This commit is contained in:
Ronan Abhamon 2018-08-09 14:32:22 +02:00
parent f243c7c8e7
commit 11260c147c
3 changed files with 5 additions and 2 deletions

View file

@ -32,7 +32,7 @@ Item {
PresenceLevel {
anchors.fill: parent
level: OwnPresenceModel.presenceLevel
level: SettingsModel.rlsUriEnabled ? OwnPresenceModel.presenceLevel : Presence.Green
visible: AccountSettingsModel.registrationState === AccountSettingsModel.RegistrationStateRegistered
}

View file

@ -20,7 +20,7 @@ DialogPlus {
centeredButtons: true
objectName: '__manageAccounts'
height: ManageAccountsStyle.height
height: SettingsModel.rlsUriEnabled ? ManageAccountsStyle.height : ManageAccountsStyle.heightWithoutPresence
width: ManageAccountsStyle.width
// ---------------------------------------------------------------------------
@ -30,6 +30,8 @@ DialogPlus {
orientation: Qt.Vertical
FormLine {
visible: SettingsModel.rlsUriEnabled
FormGroup {
label: qsTr('selectPresenceLabel')

View file

@ -5,5 +5,6 @@ import QtQml 2.2
QtObject {
property int height: 234
property int heightWithoutPresence: 165
property int width: 450
}