mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-02 09:40:42 +00:00
Track check for updates.
This commit is contained in:
parent
b19d2f2c21
commit
386ce08fca
2
llm.cpp
2
llm.cpp
@ -449,6 +449,8 @@ int32_t LLM::threadCount() {
|
|||||||
|
|
||||||
bool LLM::checkForUpdates() const
|
bool LLM::checkForUpdates() const
|
||||||
{
|
{
|
||||||
|
Network::globalInstance()->sendCheckForUpdates();
|
||||||
|
|
||||||
#if defined(Q_OS_LINUX)
|
#if defined(Q_OS_LINUX)
|
||||||
QString tool("maintenancetool");
|
QString tool("maintenancetool");
|
||||||
#elif defined(Q_OS_WINDOWS)
|
#elif defined(Q_OS_WINDOWS)
|
||||||
|
@ -174,6 +174,13 @@ void Network::sendShutdown()
|
|||||||
sendMixpanelEvent("shutdown");
|
sendMixpanelEvent("shutdown");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Network::sendCheckForUpdates()
|
||||||
|
{
|
||||||
|
if (!m_isOptIn)
|
||||||
|
return;
|
||||||
|
sendMixpanelEvent("check_for_updates");
|
||||||
|
}
|
||||||
|
|
||||||
void Network::sendMixpanelEvent(const QString &ev)
|
void Network::sendMixpanelEvent(const QString &ev)
|
||||||
{
|
{
|
||||||
if (!m_isOptIn)
|
if (!m_isOptIn)
|
||||||
|
@ -27,6 +27,7 @@ public Q_SLOTS:
|
|||||||
void sendResetContext();
|
void sendResetContext();
|
||||||
void sendStartup();
|
void sendStartup();
|
||||||
void sendShutdown();
|
void sendShutdown();
|
||||||
|
void sendCheckForUpdates();
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void handleIpifyFinished();
|
void handleIpifyFinished();
|
||||||
|
Loading…
Reference in New Issue
Block a user