1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-08-04 14:55:43 +02:00

misc: avoid duplicate account combo box refresh

refresh is already performed on property change

Change-Id: I274d22e131e628db40f6a91c425fc72369310117
This commit is contained in:
ababi 2020-09-21 11:21:29 +02:00 committed by Andreas Traczyk
parent 3735cf0d4f
commit 9d8fd5da04

View file

@ -121,7 +121,6 @@ Window {
} }
function newAccountAdded(index) { function newAccountAdded(index) {
mainViewWindowSidePanel.refreshAccountComboBox(index)
AccountAdapter.accountChanged(index) AccountAdapter.accountChanged(index)
} }
@ -235,7 +234,6 @@ Window {
callStackView.responsibleConvUid = convUid callStackView.responsibleConvUid = convUid
callStackView.updateCorrespondingUI() callStackView.updateCorrespondingUI()
mainViewWindowSidePanel.refreshAccountComboBox(index)
AccountAdapter.accountChanged(index) AccountAdapter.accountChanged(index)
ConversationsAdapter.selectConversation(accountId, convUid, !fromNotification) ConversationsAdapter.selectConversation(accountId, convUid, !fromNotification)
MessagesAdapter.setupChatView(convUid) MessagesAdapter.setupChatView(convUid)
@ -310,7 +308,6 @@ Window {
onAccountChanged: { onAccountChanged: {
mainViewWindowSidePanel.deselectConversationSmartList() mainViewWindowSidePanel.deselectConversationSmartList()
mainViewWindowSidePanel.refreshAccountComboBox(index)
AccountAdapter.accountChanged(index) AccountAdapter.accountChanged(index)
settingsView.slotAccountListChanged() settingsView.slotAccountListChanged()
@ -552,7 +549,6 @@ Window {
visible: false visible: false
onSettingsViewWindowNeedToShowMainViewWindow: { onSettingsViewWindowNeedToShowMainViewWindow: {
mainViewWindowSidePanel.refreshAccountComboBox(0)
AccountAdapter.accountChanged(0) AccountAdapter.accountChanged(0)
toggleSettingsView() toggleSettingsView()
} }