Commit 11260c14 authored by Ronan's avatar Ronan

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

parent f243c7c8
...@@ -32,7 +32,7 @@ Item { ...@@ -32,7 +32,7 @@ Item {
PresenceLevel { PresenceLevel {
anchors.fill: parent anchors.fill: parent
level: OwnPresenceModel.presenceLevel level: SettingsModel.rlsUriEnabled ? OwnPresenceModel.presenceLevel : Presence.Green
visible: AccountSettingsModel.registrationState === AccountSettingsModel.RegistrationStateRegistered visible: AccountSettingsModel.registrationState === AccountSettingsModel.RegistrationStateRegistered
} }
......
...@@ -20,7 +20,7 @@ DialogPlus { ...@@ -20,7 +20,7 @@ DialogPlus {
centeredButtons: true centeredButtons: true
objectName: '__manageAccounts' objectName: '__manageAccounts'
height: ManageAccountsStyle.height height: SettingsModel.rlsUriEnabled ? ManageAccountsStyle.height : ManageAccountsStyle.heightWithoutPresence
width: ManageAccountsStyle.width width: ManageAccountsStyle.width
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
...@@ -30,6 +30,8 @@ DialogPlus { ...@@ -30,6 +30,8 @@ DialogPlus {
orientation: Qt.Vertical orientation: Qt.Vertical
FormLine { FormLine {
visible: SettingsModel.rlsUriEnabled
FormGroup { FormGroup {
label: qsTr('selectPresenceLabel') label: qsTr('selectPresenceLabel')
......
...@@ -5,5 +5,6 @@ import QtQml 2.2 ...@@ -5,5 +5,6 @@ import QtQml 2.2
QtObject { QtObject {
property int height: 234 property int height: 234
property int heightWithoutPresence: 165
property int width: 450 property int width: 450
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment