Fix the erase search button to use the new icon. (#2501)

Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
AT 2024-07-01 14:01:11 -04:00 committed by GitHub
parent 125b8d50bd
commit ff207dc344
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -144,11 +144,7 @@ Rectangle {
backgroundColor: theme.textColor
backgroundColorHovered: theme.iconBackgroundDark
visible: discoverField.text !== ""
contentItem: Text {
color: clearDiscoverButton.hovered ? theme.iconBackgroundDark : theme.textColor
text: "\u2715"
font.pixelSize: theme.fontSizeLarge
}
source: "qrc:/gpt4all/icons/close.svg"
onClicked: {
discoverField.text = ""
discoverField.sendDiscovery() // should clear results