Add ability to remove models.

This commit is contained in:
Adam Treat
2023-05-16 09:32:01 -04:00
committed by AT
parent 47059ad9f1
commit b24ace372b
5 changed files with 71 additions and 9 deletions

View File

@@ -253,6 +253,16 @@ void Network::sendInstallModel(const QString &model)
sendMixpanelEvent("install_model", QVector<KeyValue>{kv});
}
void Network::sendRemoveModel(const QString &model)
{
if (!m_usageStatsActive)
return;
KeyValue kv;
kv.key = QString("model");
kv.value = QJsonValue(model);
sendMixpanelEvent("remove_model", QVector<KeyValue>{kv});
}
void Network::sendDownloadStarted(const QString &model)
{
if (!m_usageStatsActive)