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();
break;
case Qt.RightButton:
if (!item.hasMenu)
return;
menu.open();
item.hasMenu && menu.open();
break;
default:
console.log("Buttonevent unhandled");