Case-insensitive visibility checking for printers

In Qt's ListModel, the section headers collect items case-insensitively. However, when checking whether a printer should be visible (when the section header is expanded) was still checked case-sensitively. As a result, it was hiding all printers that did not use the same casing in its manufacturer name, e.g. FlashForge vs. Flashforge.

Fixes #11125.
This commit is contained in:
Ghostkeeper 2022-01-11 16:29:40 +01:00
parent 66648ca611
commit 5eee9958a0
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -186,7 +186,7 @@ Item
checked: ListView.view.currentIndex == index checked: ListView.view.currentIndex == index
text: name text: name
visible: base.currentSection == section visible: base.currentSection.toLowerCase() === section.toLowerCase()
onClicked: ListView.view.currentIndex = index onClicked: ListView.view.currentIndex = index
} }
} }