From cb3274fb0cda91a2bd30133c604dedc82e82a863 Mon Sep 17 00:00:00 2001 From: Bruno Cesar Rocha Date: Tue, 14 Oct 2025 00:25:27 +0100 Subject: [PATCH] fix: get desktop entry back (#417) --- Modals/Spotlight/SpotlightResults.qml | 4 ++-- Modules/AppDrawer/AppLauncher.qml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Modals/Spotlight/SpotlightResults.qml b/Modals/Spotlight/SpotlightResults.qml index 94f6786e..d3f22da3 100644 --- a/Modals/Spotlight/SpotlightResults.qml +++ b/Modals/Spotlight/SpotlightResults.qml @@ -162,7 +162,7 @@ Rectangle { onClicked: mouse => { if (mouse.button === Qt.LeftButton) { resultsList.itemClicked(index, model) - } else if (mouse.button === Qt.RightButton) { + } else if (mouse.button === Qt.RightButton && !model.isPlugin) { const globalPos = mapToItem(null, mouse.x, mouse.y) const modalPos = resultsContainer.parent.mapFromItem(null, globalPos.x, globalPos.y) resultsList.itemRightClicked(index, model, modalPos.x, modalPos.y) @@ -314,7 +314,7 @@ Rectangle { onClicked: mouse => { if (mouse.button === Qt.LeftButton) { resultsGrid.itemClicked(index, model) - } else if (mouse.button === Qt.RightButton) { + } else if (mouse.button === Qt.RightButton && !model.isPlugin) { const globalPos = mapToItem(null, mouse.x, mouse.y) const modalPos = resultsContainer.parent.mapFromItem(null, globalPos.x, globalPos.y) resultsGrid.itemRightClicked(index, model, modalPos.x, modalPos.y) diff --git a/Modules/AppDrawer/AppLauncher.qml b/Modules/AppDrawer/AppLauncher.qml index bb435ff7..8a656ad5 100644 --- a/Modules/AppDrawer/AppLauncher.qml +++ b/Modules/AppDrawer/AppLauncher.qml @@ -154,7 +154,8 @@ Item { "comment": app.comment || "", "categories": app.categories || [], "isPlugin": isPluginItem, - "appIndex": uniqueApps.length - 1 + "appIndex": uniqueApps.length - 1, + "desktopEntry": isPluginItem ? null : app }) } })