mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-04-22 06:02: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()
|
updateAndShowBannedContactsSlot()
|
||||||
}
|
}
|
||||||
|
|
||||||
function setVisibility() {
|
|
||||||
root.visible = bannedListWidget.model.rowCount() > 0
|
|
||||||
}
|
|
||||||
|
|
||||||
function updateAndShowBannedContactsSlot() {
|
function updateAndShowBannedContactsSlot() {
|
||||||
bannedListWidget.model.reset()
|
bannedListWidget.model.reset()
|
||||||
setVisibility()
|
root.visible = bannedListWidget.model.rowCount() > 0
|
||||||
if(bannedListWidget.model.rowCount() <= 0) {
|
if(bannedListWidget.model.rowCount() <= 0) {
|
||||||
bannedListWidget.visible = false
|
bannedListWidget.visible = false
|
||||||
bannedContactsBtn.visible = false
|
bannedContactsBtn.visible = false
|
||||||
|
|
|
@ -55,7 +55,7 @@ Rectangle {
|
||||||
accountProfile.updateAccountInfo()
|
accountProfile.updateAccountInfo()
|
||||||
userIdentity.updateAccountInfo()
|
userIdentity.updateAccountInfo()
|
||||||
linkedDevices.updateAndShowDevicesSlot()
|
linkedDevices.updateAndShowDevicesSlot()
|
||||||
bannedContacts.setVisibility()
|
bannedContacts.updateAndShowBannedContactsSlot()
|
||||||
advancedSettings.updateAdvancedAccountInfos()
|
advancedSettings.updateAdvancedAccountInfos()
|
||||||
setPasswordButtonText()
|
setPasswordButtonText()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue