fix(StatusChatListCategory): ensures showActionButtons is taken into account

when showing the menu button and right click
This commit is contained in:
Anthony Laibe 2021-07-16 11:14:26 +02:00 committed by Michał Cieślak
parent 38736ad58a
commit 43623b3c7b
1 changed files with 2 additions and 2 deletions

View File

@ -32,10 +32,10 @@ Column {
title: statusChatListCategory.name
opened: statusChatListCategory.opened
showMenuButton: !!statusChatListCategory.popupMenu
showMenuButton: showActionButtons && !!statusChatListCategory.popupMenu
onClicked: {
if (mouse.button === Qt.RightButton && !!statusChatListCategory.popupMenu) {
if (mouse.button === Qt.RightButton && showActionButtons && !!statusChatListCategory.popupMenu) {
highlighted = true
popupMenuSlot.item.popup(mouse.x + 4, mouse.y + 6)
return