mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-13 00:42:49 -05:00
fix: get desktop entry back (#417)
This commit is contained in:
committed by
GitHub
parent
a3ada5b2bb
commit
cb3274fb0c
@@ -162,7 +162,7 @@ Rectangle {
|
|||||||
onClicked: mouse => {
|
onClicked: mouse => {
|
||||||
if (mouse.button === Qt.LeftButton) {
|
if (mouse.button === Qt.LeftButton) {
|
||||||
resultsList.itemClicked(index, model)
|
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 globalPos = mapToItem(null, mouse.x, mouse.y)
|
||||||
const modalPos = resultsContainer.parent.mapFromItem(null, globalPos.x, globalPos.y)
|
const modalPos = resultsContainer.parent.mapFromItem(null, globalPos.x, globalPos.y)
|
||||||
resultsList.itemRightClicked(index, model, modalPos.x, modalPos.y)
|
resultsList.itemRightClicked(index, model, modalPos.x, modalPos.y)
|
||||||
@@ -314,7 +314,7 @@ Rectangle {
|
|||||||
onClicked: mouse => {
|
onClicked: mouse => {
|
||||||
if (mouse.button === Qt.LeftButton) {
|
if (mouse.button === Qt.LeftButton) {
|
||||||
resultsGrid.itemClicked(index, model)
|
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 globalPos = mapToItem(null, mouse.x, mouse.y)
|
||||||
const modalPos = resultsContainer.parent.mapFromItem(null, globalPos.x, globalPos.y)
|
const modalPos = resultsContainer.parent.mapFromItem(null, globalPos.x, globalPos.y)
|
||||||
resultsGrid.itemRightClicked(index, model, modalPos.x, modalPos.y)
|
resultsGrid.itemRightClicked(index, model, modalPos.x, modalPos.y)
|
||||||
|
|||||||
@@ -154,7 +154,8 @@ Item {
|
|||||||
"comment": app.comment || "",
|
"comment": app.comment || "",
|
||||||
"categories": app.categories || [],
|
"categories": app.categories || [],
|
||||||
"isPlugin": isPluginItem,
|
"isPlugin": isPluginItem,
|
||||||
"appIndex": uniqueApps.length - 1
|
"appIndex": uniqueApps.length - 1,
|
||||||
|
"desktopEntry": isPluginItem ? null : app
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user