From afc7890dc8a6c5c88aa15b7ee41a9ead71b12016 Mon Sep 17 00:00:00 2001 From: Oleksii Skorobogatko Date: Mon, 16 Dec 2024 20:59:46 +0200 Subject: [PATCH] #4 mark images in tray context menu --- src/main/system.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/system.js b/src/main/system.js index ee476bb..ad6b706 100644 --- a/src/main/system.js +++ b/src/main/system.js @@ -182,7 +182,7 @@ function updateTrayContextMenu(tray, contextMenu, clipItems) { })); for (const clipItem of clipItems) { - const label = stringCut(clipItem.data, 50); + const label = clipItem.image ? '[IMAGE]' : stringCut(clipItem.data, 50); contextMenu.insert(0, new MenuItem({ id: `${ITEM_PREFIX}item-${clipItem.id}`, label,