chat: fix incorrect file URIs for sources on Windows (#2469)

This was causing LocalDocs sources to not open correctly on Windows.

Signed-off-by: Adam Treat <treat.adam@gmail.com>
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
Co-authored-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
AT
2024-06-26 14:48:02 -04:00
committed by GitHub
parent c87ccf4124
commit 3a61070f82
2 changed files with 31 additions and 13 deletions

View File

@@ -864,7 +864,7 @@ Rectangle {
anchors.fill: parent
hoverEnabled: true
onClicked: function() {
Qt.openUrlExternally("file://" + modelData.path)
Qt.openUrlExternally(modelData.fileUri)
}
}