From 62f6442e6e9621622ac26ef5156ed1bff24447b9 Mon Sep 17 00:00:00 2001 From: zach Date: Wed, 25 Mar 2026 19:07:55 +0100 Subject: [PATCH] fix search --- Modules/Settings/Content.qml | 6 +++++- Modules/Settings/SettingsSearch.qml | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Modules/Settings/Content.qml b/Modules/Settings/Content.qml index a1bdad1..6efa266 100644 --- a/Modules/Settings/Content.qml +++ b/Modules/Settings/Content.qml @@ -26,6 +26,10 @@ Item { scrollTimer.restart(); } + function selectCategory(categoryKey: string) { + layout.selectCategory(categoryKey); + } + implicitHeight: nonAnimHeight implicitWidth: nonAnimWidth @@ -91,7 +95,7 @@ Item { onSettingSelected: (category, section, settingName) => { root.selectCategory(category); - root.settingSelected(category, section, settingName); + root.scrollToSetting(section, settingName); } } diff --git a/Modules/Settings/SettingsSearch.qml b/Modules/Settings/SettingsSearch.qml index 49c0e92..31e16f6 100644 --- a/Modules/Settings/SettingsSearch.qml +++ b/Modules/Settings/SettingsSearch.qml @@ -146,12 +146,12 @@ Item { id: popup closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutside - implicitHeight: Math.min(resultsList.contentHeight + Appearance.padding.small * 2 + 10, (contentItem.view.delegate.implicitHeight + Appearance.spacing.smaller) * 5 - Appearance.spacing.smaller + 10) + implicitHeight: Math.min(resultsList.contentHeight + Appearance.padding.small * 2 + 10, (55 + Appearance.spacing.smaller) * 5 - Appearance.spacing.smaller + 10 + Appearance.padding.small * 2) implicitWidth: root.width + Appearance.padding.small * 2 modal: false padding: 0 x: root.width / 2 - popup.width / 2 - y: searchContainer.height + Appearance.spacing.small + y: searchContainer.height + Appearance.spacing.small - 5 background: Item { } @@ -253,7 +253,7 @@ Item { signal clicked - implicitHeight: resultLayout.implicitHeight + Appearance.padding.small * 2 + implicitHeight: 45 + Appearance.padding.small * 2 radius: Appearance.rounding.small ColumnLayout {