mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-08 11:58:53 +00:00
chat(build): fix broken installer on macOS (#2973)
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
20
gpt4all-chat/qml/MyDirectoryField.qml
Normal file
20
gpt4all-chat/qml/MyDirectoryField.qml
Normal file
@@ -0,0 +1,20 @@
|
||||
import QtCore
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Controls.Basic
|
||||
import llm
|
||||
|
||||
TextField {
|
||||
id: myDirectoryField
|
||||
padding: 10
|
||||
property bool isValid: LLM.directoryExists(text)
|
||||
color: text === "" || isValid ? theme.textColor : theme.textErrorColor
|
||||
background: Rectangle {
|
||||
implicitWidth: 150
|
||||
color: theme.controlBackground
|
||||
border.width: 1
|
||||
border.color: theme.controlBorder
|
||||
radius: 10
|
||||
}
|
||||
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
|
||||
}
|
Reference in New Issue
Block a user