chore: small logic fix

This commit is contained in:
Nydragon 2024-09-15 18:34:39 +02:00
parent 495baa5e3c
commit 455f3b24ba
Signed by: nydragon
SSH key fingerprint: SHA256:iQnIC12spf4QjWSbarmkD2No1cLMlu6TWoV7K6cYF5g

View file

@ -16,9 +16,7 @@ MouseArea {
item.activate(); item.activate();
break; break;
case Qt.RightButton: case Qt.RightButton:
if (!item.hasMenu) item.hasMenu && menu.open();
return;
menu.open();
break; break;
default: default:
console.log("Buttonevent unhandled"); console.log("Buttonevent unhandled");