1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

spotlight: fix potential binding loop

This commit is contained in:
bbedward
2025-11-04 20:38:42 -05:00
parent 40cadb6a00
commit a7c8ba332b
2 changed files with 7 additions and 6 deletions

View File

@@ -201,7 +201,7 @@ Item {
textColor: Theme.surfaceText
font.pixelSize: Theme.fontSizeLarge
enabled: parentModal ? parentModal.spotlightOpen : true
placeholderText: searchMode === "files" ? "Search files..." : "Search apps..."
placeholderText: ""
ignoreLeftRightKeys: appLauncher.viewMode !== "list"
ignoreTabKeys: true
keyForwardTargets: [spotlightKeyHandler]

View File

@@ -22,10 +22,11 @@ Item {
property real fallbackTopMargin: 0
property real fallbackBottomMargin: 0
property bool isMaterial: iconValue.indexOf("material:") === 0
property bool isUnicode: iconValue.indexOf("unicode:") === 0
property string materialName: isMaterial ? iconValue.substring(9) : ""
property string unicodeChar: isUnicode ? iconValue.substring(8) : ""
readonly property bool isMaterial: iconValue.startsWith("material:")
readonly property bool isUnicode: iconValue.startsWith("unicode:")
readonly property string materialName: isMaterial ? iconValue.substring(9) : ""
readonly property string unicodeChar: isUnicode ? iconValue.substring(8) : ""
readonly property string iconPath: isMaterial || isUnicode ? "" : Quickshell.iconPath(iconValue, true)
visible: iconValue !== undefined && iconValue !== ""
@@ -49,7 +50,7 @@ Item {
id: iconImg
anchors.fill: parent
source: root.isMaterial || root.isUnicode ? "" : Quickshell.iconPath(root.iconValue, true)
source: root.iconPath
smooth: true
asynchronous: true
visible: !root.isMaterial && !root.isUnicode && status === Image.Ready