summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
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
}