From eebfe642c4c915c3ed710c743e2db371ed6013f1 Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Tue, 20 Jun 2023 17:31:36 -0400 Subject: [PATCH] Add an error message to download dialog if models.json can't be retrieved. --- gpt4all-chat/qml/ModelDownloaderDialog.qml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gpt4all-chat/qml/ModelDownloaderDialog.qml b/gpt4all-chat/qml/ModelDownloaderDialog.qml index 9daceeed..5e08f555 100644 --- a/gpt4all-chat/qml/ModelDownloaderDialog.qml +++ b/gpt4all-chat/qml/ModelDownloaderDialog.qml @@ -55,6 +55,13 @@ Dialog { color: theme.textColor } + Label { + visible: !Download.modelList.length + anchors.centerIn: parent + text: qsTr("Network error: could not retrieve http://gpt4all.io/models/models.json") + color: theme.mutedTextColor + } + ScrollView { id: scrollView ScrollBar.vertical.policy: ScrollBar.AlwaysOn