fix(settings): guard empty-token copy, search platform filter and clear button

This commit is contained in:
Gauvain
2026-06-04 00:00:08 +02:00
parent ac5dcbe751
commit f56b2bc4eb
4 changed files with 10 additions and 2 deletions

View File

@@ -35,6 +35,7 @@ export const useSettingsSearch = (query: string): SearchResult[] => {
}
}
for (const o of SETTINGS_SEARCH_INDEX) {
if (o.platforms && !o.platforms.includes(os)) continue;
if (matchesQuery({ title: t(o.titleKey), keywords: o.keywords }, query)) {
results.push({
id: `${o.parentRoute}#${o.titleKey}`,