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 Pascal Precht
parent 9cfcdace21
commit 52cb97e409
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