Skip to content

Commit

Permalink
fix: disable click to edit built-in preset preview
Browse files Browse the repository at this point in the history
  • Loading branch information
luisbocanegra committed Nov 10, 2024
1 parent 431dcbb commit 94a709c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package/contents/ui/configPresets.qml
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ KCM.SimpleKCM {
text: i18n("Update preview")
anchors.fill: parent
icon.name: "edit-image-symbolic"
enabled: !presets[modelData].builtin
onClicked: {
runCommand.run(spectaclePreviewCmd+"'" + presets[modelData].dir+"/preview.png" + "'")
}
Expand All @@ -387,7 +388,7 @@ KCM.SimpleKCM {

HoverHandler {
id: hoverHandler
enabled: !presets[modelData].builtin
enabled: btn.enabled
cursorShape: hovered ? Qt.PointingHandCursor : Qt.ArrowCursor
onHoveredChanged: {
if (hovered) {
Expand Down

0 comments on commit 94a709c

Please sign in to comment.