From 263299b97d601018a43fa5ef44db9562ef672f30 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Wed, 24 Sep 2025 09:25:36 +0200 Subject: [PATCH] SearchItem: fix undefined warnings --- .../quickshell/ii/modules/overview/SearchItem.qml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.config/quickshell/ii/modules/overview/SearchItem.qml b/.config/quickshell/ii/modules/overview/SearchItem.qml index f4fd20467..1abdb598d 100644 --- a/.config/quickshell/ii/modules/overview/SearchItem.qml +++ b/.config/quickshell/ii/modules/overview/SearchItem.qml @@ -16,11 +16,11 @@ RippleButton { property string query property bool entryShown: entry?.shown ?? true property string itemType: entry?.type ?? Translation.tr("App") - property string itemName: entry?.name + property string itemName: entry?.name ?? "" property string itemIcon: entry?.icon ?? "" property var itemExecute: entry?.execute property string fontType: entry?.fontType ?? "main" - property string itemClickActionName: entry?.clickActionName + property string itemClickActionName: entry?.clickActionName ?? "Open" property string bigText: entry?.bigText ?? "" property string materialSymbol: entry?.materialSymbol ?? "" property string cliphistRawString: entry?.cliphistRawString ?? "" @@ -233,8 +233,8 @@ RippleButton { delegate: RippleButton { id: actionButton required property var modelData - property string iconName: modelData.icon - property string materialIconName: modelData.materialIcon + property string iconName: modelData.icon ?? "" + property string materialIconName: modelData.materialIcon ?? "" implicitHeight: 34 implicitWidth: 34 @@ -246,7 +246,7 @@ RippleButton { anchors.centerIn: parent Loader { anchors.centerIn: parent - active: !(actionButton.iconName && actionButton.iconName !== "") || actionButton.materialIconName + active: !(actionButton.iconName !== "") || actionButton.materialIconName sourceComponent: MaterialSymbol { text: actionButton.materialIconName || "video_settings" font.pixelSize: Appearance.font.pixelSize.hugeass @@ -255,7 +255,7 @@ RippleButton { } Loader { anchors.centerIn: parent - active: !actionButton.materialIconName && actionButton.iconName && actionButton.iconName !== "" + active: actionButton.materialIconName.length == 0 && actionButton.iconName && actionButton.iconName !== "" sourceComponent: IconImage { source: Quickshell.iconPath(actionButton.iconName) implicitSize: 20