mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-08 03:49:10 +00:00
chat: major UI redesign for v3.0.0 (#2396)
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:
@@ -13,12 +13,14 @@
|
||||
#include <QUrl>
|
||||
#include <QtLogging>
|
||||
|
||||
#include <string>
|
||||
|
||||
#ifndef GPT4ALL_OFFLINE_INSTALLER
|
||||
#ifdef GPT4ALL_OFFLINE_INSTALLER
|
||||
# include <QDesktopServices>
|
||||
#else
|
||||
# include "network.h"
|
||||
#endif
|
||||
|
||||
using namespace Qt::Literals::StringLiterals;
|
||||
|
||||
class MyLLM: public LLM { };
|
||||
Q_GLOBAL_STATIC(MyLLM, llmInstance)
|
||||
LLM *LLM::globalInstance()
|
||||
@@ -54,11 +56,11 @@ bool LLM::checkForUpdates() const
|
||||
Network::globalInstance()->trackEvent("check_for_updates");
|
||||
|
||||
#if defined(Q_OS_LINUX)
|
||||
QString tool("maintenancetool");
|
||||
QString tool = u"maintenancetool"_s;
|
||||
#elif defined(Q_OS_WINDOWS)
|
||||
QString tool("maintenancetool.exe");
|
||||
QString tool = u"maintenancetool.exe"_s;
|
||||
#elif defined(Q_OS_DARWIN)
|
||||
QString tool("../../../maintenancetool.app/Contents/MacOS/maintenancetool");
|
||||
QString tool = u"../../../maintenancetool.app/Contents/MacOS/maintenancetool"_s;
|
||||
#endif
|
||||
|
||||
QString fileName = QCoreApplication::applicationDirPath()
|
||||
|
Reference in New Issue
Block a user