diff --git a/llm.cpp b/llm.cpp index 13fafedd..1c489998 100644 --- a/llm.cpp +++ b/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) diff --git a/network.cpp b/network.cpp index 0c1c6ace..50c2f321 100644 --- a/network.cpp +++ b/network.cpp @@ -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) diff --git a/network.h b/network.h index 46a7f523..4aa6c1b8 100644 --- a/network.h +++ b/network.h @@ -27,6 +27,7 @@ public Q_SLOTS: void sendResetContext(); void sendStartup(); void sendShutdown(); + void sendCheckForUpdates(); private Q_SLOTS: void handleIpifyFinished();