Add the ability to change the directory via text field not just 'browse' button.

This commit is contained in:
Adam Treat
2023-06-02 22:52:55 -04:00
parent 25ee51e2ca
commit 55055ca983
7 changed files with 67 additions and 29 deletions

View File

@@ -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
}
}