1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-09-10 12:03:18 +02:00

swarmdetailspanel: always open on first tab option

Change-Id: If04bdf1b1398c04cdd980d28e0ee594b225ebc3d
GitLab: #1231
This commit is contained in:
Aline Gondim Santos 2023-07-27 10:07:32 -03:00 committed by Sébastien Blin
parent 3b85425aa3
commit a5bf258476

View file

@ -177,13 +177,16 @@ Rectangle {
function addRemoveButtons() {
if (CurrentConversation.isCoreDialog) {
if (tabBar.contentChildren.length === 3)
if (tabBar.contentChildren.length === 3) {
tabBar.setCurrentIndex(1);
tabBar.removeItem(tabBar.itemAt(0));
}
} else {
if (tabBar.contentChildren.length === 2) {
const obj = membersTabButtonComp.createObject(tabBar);
tabBar.insertItem(0, obj);
}
tabBar.setCurrentIndex(0);
}
}