NSearchableCombobox: improve binding

This commit is contained in:
Lemmy
2025-12-12 15:27:22 -05:00
parent f996049515
commit de547c3087
+9
View File
@@ -95,6 +95,15 @@ RowLayout {
onSearchTextChanged: filterModel()
onModelChanged: filterModel()
Component.onCompleted: filterModel()
// Watch for model content changes (e.g., async font loading)
Connections {
target: root.model
function onCountChanged() {
filterModel();
}
}
NLabel {
label: root.label