Skip to content

Fix ComboRow search by setting a PropertyExpression on the model - #79

Merged
zugaldia merged 1 commit into
mainfrom
az-language-search
Mar 17, 2026
Merged

zugaldia merged 1 commit into
mainfrom
az-language-search

Conversation

@zugaldia

Copy link
Copy Markdown
Owner

Summary

  • Fixes search in LanguageComboRow and ModelComboRow, which was broken despite enableSearch = true being set
  • Root cause: GTK requires GtkDropDown:expression to be set for search to work — without it the search field appears but does not filter
  • Adds PropertyExpression(StringObject.getType(), null, "string") to both rows, targeting the string property of the StringObject items in the StringList model

Test plan

  • Open Preferences → General — confirm the language dropdown search field now filters the language list as you type
  • Open Preferences → Voice/Text models — confirm the model dropdown search field filters models as you type

AdwComboRow requires an expression to be set for enable-search to
actually filter items. Without it the search field appears but does
nothing. Adds a PropertyExpression targeting the "string" property
of StringObject to both LanguageComboRow and ModelComboRow.
@zugaldia
zugaldia merged commit 6689e2e into main Mar 17, 2026
4 checks passed
@zugaldia
zugaldia deleted the az-language-search branch March 17, 2026 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant