Skip to content
Snippets Groups Projects
Commit e7f24d01 authored by Ming Rui Zhang's avatar Ming Rui Zhang Committed by Andreas Traczyk
Browse files

settingsview: update banned contact correctly

Prevent the issue of hidden banned contact ui when new contact
request is received

Change-Id: I6b6b5c1e702a5fcb23a1ac26efb7df814bce01a8
parent 87c75436
No related branches found
No related tags found
No related merge requests found
......@@ -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()
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment