mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-09-04 06:03:21 +02:00
settings: do not show link device for a disabled account
Gitlab: #334 Change-Id: Ia2b6365f36b0cef79e3ba58475c5b25bbac0c6b6
This commit is contained in:
parent
ccb412c6ad
commit
b0fdeb79eb
1 changed files with 16 additions and 4 deletions
|
@ -35,6 +35,7 @@ ColumnLayout {
|
|||
|
||||
Connections {
|
||||
id: accountConnections_DeviceModel
|
||||
|
||||
target: AccountAdapter.deviceModel
|
||||
enabled: root.visible
|
||||
|
||||
|
@ -51,13 +52,26 @@ ColumnLayout {
|
|||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
id: accountConnections
|
||||
|
||||
target: AccountAdapter
|
||||
enabled: root.visible
|
||||
|
||||
function onAccountStatusChanged(id) {
|
||||
if (SettingsAdapter.getAccountConfig_Manageruri() === ""){
|
||||
linkDevPushButton.visible = SettingsAdapter.get_CurrentAccountInfo_Enabled()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function connectCurrentAccount(status) {
|
||||
accountConnections_DeviceModel.enabled = status
|
||||
}
|
||||
|
||||
function updateAndShowDevicesSlot() {
|
||||
if(SettingsAdapter.getAccountConfig_Manageruri() === ""){
|
||||
linkDevPushButton.visible = true
|
||||
if (SettingsAdapter.getAccountConfig_Manageruri() === ""){
|
||||
linkDevPushButton.visible = SettingsAdapter.get_CurrentAccountInfo_Enabled()
|
||||
}
|
||||
settingsListView.model.reset()
|
||||
}
|
||||
|
@ -145,8 +159,6 @@ ColumnLayout {
|
|||
Layout.preferredWidth: JamiTheme.preferredFieldWidth
|
||||
Layout.preferredHeight: JamiTheme.preferredFieldHeight
|
||||
|
||||
visible: SettingsAdapter.getAccountConfig_Manageruri() === ""
|
||||
|
||||
color: JamiTheme.buttonTintedBlack
|
||||
hoveredColor: JamiTheme.buttonTintedBlackHovered
|
||||
pressedColor: JamiTheme.buttonTintedBlackPressed
|
||||
|
|
Loading…
Add table
Reference in a new issue