mirror of https://github.com/nomic-ai/gpt4all
Add the ability to change the directory via text field not just 'browse' button.
parent
ed9da866fd
commit
66457b88c4
@ -0,0 +1,17 @@
|
||||
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.backgroundLighter
|
||||
radius: 10
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue