Explorar o código

version-specific user track

Le Tan %!s(int64=6) %!d(string=hai) anos
pai
achega
b02b9d711b
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/vmainwindow.cpp

+ 3 - 1
src/vmainwindow.cpp

@@ -3590,7 +3590,9 @@ void VMainWindow::collectUserStat() const
         qDebug() << "send user track" << QDate::currentDate();
 
         QWebEnginePage *page = new QWebEnginePage;
-        page->load(QUrl("https://tamlok.github.io/user_track/vnote.html"));
+
+        QString url = QString("https://tamlok.github.io/user_track/vnote/vnote_%1.html").arg(VConfigManager::c_version);
+        page->load(QUrl(url));
         connect(page, &QWebEnginePage::loadFinished,
                 this, [page](bool) {
                     VUtils::sleepWait(2000);