summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-07 20:46:34 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-07 20:46:34 +0300
commitbaff2d8d870fd89c5705959e13f31a1c7ca1be5d (patch)
treebdc1b2aaa75852077514211d7945cf83cfa3e64f /src/settings.cpp
parent6996022cc1ba75263f20a02ab0bedb10fc3ef5a5 (diff)
downloadplus-baff2d8d870fd89c5705959e13f31a1c7ca1be5d.tar.gz
plus-baff2d8d870fd89c5705959e13f31a1c7ca1be5d.tar.bz2
plus-baff2d8d870fd89c5705959e13f31a1c7ca1be5d.tar.xz
plus-baff2d8d870fd89c5705959e13f31a1c7ca1be5d.zip
Add current renderer into user agent string.
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index 4aa8f655e..f620237d3 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -21,7 +21,10 @@
#include "settings.h"
#include "configuration.h"
-#include "main.h"
+
+#ifndef DYECMD
+#include "net/useragent.h"
+#endif // DYECMD
#include "debug.h"
@@ -30,6 +33,7 @@ Settings settings;
void Settings::init()
{
uselonglivesprites = config.getBoolValue("uselonglivesprites");
- userAgent = strprintf(PACKAGE_EXTENDED_VERSION,
- branding.getStringValue("appName").c_str());
+#ifndef DYECMD
+ UserAgent::update();
+#endif // DYECMD
}