Match to app display PIN option

This commit is contained in:
cutefishd 2021-04-11 18:24:23 +08:00
parent 22a5953624
commit c2a27847cb

View file

@ -54,6 +54,7 @@ DockItem {
MenuItem {
text: model.isPinned ? qsTr("Unpin") : qsTr("Pin")
visible: model.desktopFile !== ""
onTriggered: {
model.isPinned ? appModel.unPin(model.appId) : appModel.pin(model.appId)
}