From 51c15d596f3fbc68569a1d3d6d5ae3b2f33701e0 Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 1 Aug 2019 11:19:55 +0100 Subject: [PATCH] Identify image viewer use before adding API to analytics --- qrenderdoc/Code/CaptureContext.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qrenderdoc/Code/CaptureContext.cpp b/qrenderdoc/Code/CaptureContext.cpp index b57c5219c..bd375c8da 100644 --- a/qrenderdoc/Code/CaptureContext.cpp +++ b/qrenderdoc/Code/CaptureContext.cpp @@ -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); }