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:
@@ -201,7 +201,7 @@ Item {
|
|||||||
textColor: Theme.surfaceText
|
textColor: Theme.surfaceText
|
||||||
font.pixelSize: Theme.fontSizeLarge
|
font.pixelSize: Theme.fontSizeLarge
|
||||||
enabled: parentModal ? parentModal.spotlightOpen : true
|
enabled: parentModal ? parentModal.spotlightOpen : true
|
||||||
placeholderText: searchMode === "files" ? "Search files..." : "Search apps..."
|
placeholderText: ""
|
||||||
ignoreLeftRightKeys: appLauncher.viewMode !== "list"
|
ignoreLeftRightKeys: appLauncher.viewMode !== "list"
|
||||||
ignoreTabKeys: true
|
ignoreTabKeys: true
|
||||||
keyForwardTargets: [spotlightKeyHandler]
|
keyForwardTargets: [spotlightKeyHandler]
|
||||||
|
|||||||
@@ -22,10 +22,11 @@ Item {
|
|||||||
property real fallbackTopMargin: 0
|
property real fallbackTopMargin: 0
|
||||||
property real fallbackBottomMargin: 0
|
property real fallbackBottomMargin: 0
|
||||||
|
|
||||||
property bool isMaterial: iconValue.indexOf("material:") === 0
|
readonly property bool isMaterial: iconValue.startsWith("material:")
|
||||||
property bool isUnicode: iconValue.indexOf("unicode:") === 0
|
readonly property bool isUnicode: iconValue.startsWith("unicode:")
|
||||||
property string materialName: isMaterial ? iconValue.substring(9) : ""
|
readonly property string materialName: isMaterial ? iconValue.substring(9) : ""
|
||||||
property string unicodeChar: isUnicode ? iconValue.substring(8) : ""
|
readonly property string unicodeChar: isUnicode ? iconValue.substring(8) : ""
|
||||||
|
readonly property string iconPath: isMaterial || isUnicode ? "" : Quickshell.iconPath(iconValue, true)
|
||||||
|
|
||||||
visible: iconValue !== undefined && iconValue !== ""
|
visible: iconValue !== undefined && iconValue !== ""
|
||||||
|
|
||||||
@@ -49,7 +50,7 @@ Item {
|
|||||||
id: iconImg
|
id: iconImg
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
source: root.isMaterial || root.isUnicode ? "" : Quickshell.iconPath(root.iconValue, true)
|
source: root.iconPath
|
||||||
smooth: true
|
smooth: true
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
visible: !root.isMaterial && !root.isUnicode && status === Image.Ready
|
visible: !root.isMaterial && !root.isUnicode && status === Image.Ready
|
||||||
|
|||||||
Reference in New Issue
Block a user