Identify image viewer use before adding API to analytics

This commit is contained in:
baldurk
2019-08-01 11:19:55 +01:00
parent 006ba0e103
commit 51c15d596f
+5 -1
View File
@@ -941,7 +941,11 @@ void CaptureContext::LoadCaptureThreaded(const QString &captureFile, const QStri
LoadNotes(QString::fromUtf8((const char *)buf.data(), buf.count()));
}
QString driver = access->DriverName();
if(!driver.isEmpty())
if(driver == lit("Image"))
{
ANALYTIC_SET(UIFeatures.ImageViewer, true);
}
else if(!driver.isEmpty())
{
ANALYTIC_ADDUNIQ(APIs, driver);
}