While searching, search through all settings rather than just visible

This makes it consistent with the searching of the normal settings list. It also makes it easier to find certain things like the Cutting Mesh or something.
This commit is contained in:
Ghostkeeper 2020-05-15 13:11:28 +02:00
parent 5a8d411c35
commit 783b26e521
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -60,16 +60,12 @@ UM.Dialog
CheckBox CheckBox
{ {
id: toggleShowAll id: toggleShowAll
anchors anchors
{ {
top: parent.top top: parent.top
right: parent.right right: parent.right
} }
text: catalog.i18nc("@label:checkbox", "Show all") text: catalog.i18nc("@label:checkbox", "Show all")
checked: listview.model.showAll
onClicked: listview.model.showAll = checked
} }
ScrollView ScrollView
@ -85,7 +81,7 @@ UM.Dialog
} }
ListView ListView
{ {
id:listview id: listview
model: UM.SettingDefinitionsModel model: UM.SettingDefinitionsModel
{ {
id: definitionsModel id: definitionsModel
@ -98,6 +94,7 @@ UM.Dialog
excluded_settings = excluded_settings.concat(settingPickDialog.additional_excluded_settings) excluded_settings = excluded_settings.concat(settingPickDialog.additional_excluded_settings)
return excluded_settings return excluded_settings
} }
showAll: toggleShowAll.checked || filterInput.text !== ""
} }
delegate:Loader delegate:Loader
{ {