mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
NSearchableCombobox: improve binding
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user