mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-04-21 21:52:03 +02:00
settingsview: update banned contact correctly
Prevent the issue of hidden banned contact ui when new contact request is received Change-Id: I6b6b5c1e702a5fcb23a1ac26efb7df814bce01a8
This commit is contained in:
parent
87c7543644
commit
e7f24d01c8
2 changed files with 2 additions and 6 deletions
|
@ -70,13 +70,9 @@ ColumnLayout {
|
|||
updateAndShowBannedContactsSlot()
|
||||
}
|
||||
|
||||
function setVisibility() {
|
||||
root.visible = bannedListWidget.model.rowCount() > 0
|
||||
}
|
||||
|
||||
function updateAndShowBannedContactsSlot() {
|
||||
bannedListWidget.model.reset()
|
||||
setVisibility()
|
||||
root.visible = bannedListWidget.model.rowCount() > 0
|
||||
if(bannedListWidget.model.rowCount() <= 0) {
|
||||
bannedListWidget.visible = false
|
||||
bannedContactsBtn.visible = false
|
||||
|
|
|
@ -55,7 +55,7 @@ Rectangle {
|
|||
accountProfile.updateAccountInfo()
|
||||
userIdentity.updateAccountInfo()
|
||||
linkedDevices.updateAndShowDevicesSlot()
|
||||
bannedContacts.setVisibility()
|
||||
bannedContacts.updateAndShowBannedContactsSlot()
|
||||
advancedSettings.updateAdvancedAccountInfos()
|
||||
setPasswordButtonText()
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue