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
|
||||
{
|
||||
Network::globalInstance()->sendCheckForUpdates();
|
||||
|
||||
#if defined(Q_OS_LINUX)
|
||||
QString tool("maintenancetool");
|
||||
#elif defined(Q_OS_WINDOWS)
|
||||
|
@ -174,6 +174,13 @@ void Network::sendShutdown()
|
||||
sendMixpanelEvent("shutdown");
|
||||
}
|
||||
|
||||
void Network::sendCheckForUpdates()
|
||||
{
|
||||
if (!m_isOptIn)
|
||||
return;
|
||||
sendMixpanelEvent("check_for_updates");
|
||||
}
|
||||
|
||||
void Network::sendMixpanelEvent(const QString &ev)
|
||||
{
|
||||
if (!m_isOptIn)
|
||||
|
Loading…
Reference in New Issue
Block a user