mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 02:45:55 +08:00
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:
parent
66648ca611
commit
5eee9958a0
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user