Track check for updates.

This commit is contained in:
Adam Treat 2023-04-27 07:41:23 -04:00
parent b19d2f2c21
commit 386ce08fca
3 changed files with 10 additions and 0 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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();