summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-06 13:27:37 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-06 13:27:37 +0300
commit0f25d6e3defc9a6cd1cc2cd23b522abf8734c837 (patch)
tree734ab65c460504095920bdf9ba347ecd11c6d0f8 /src
parent4e6f98cfd788965bd382f1722e2a5d895dda3bc6 (diff)
downloadplus-0f25d6e3defc9a6cd1cc2cd23b522abf8734c837.tar.gz
plus-0f25d6e3defc9a6cd1cc2cd23b522abf8734c837.tar.bz2
plus-0f25d6e3defc9a6cd1cc2cd23b522abf8734c837.tar.xz
plus-0f25d6e3defc9a6cd1cc2cd23b522abf8734c837.zip
Dont shop "did you know" window by default on Android.
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp8
-rw-r--r--src/defaults.cpp12
2 files changed, 12 insertions, 8 deletions
diff --git a/src/client.cpp b/src/client.cpp
index c2b0ad8fb..d5623a7f2 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -3134,8 +3134,14 @@ void Client::checkConfigVersion()
config.setValue("customcursor", false);
#endif
}
+ if (version < 4)
+ {
+#ifdef ANDROID
+ config.setValue("showDidYouKnow", false);
+#endif
+ }
- config.setValue("cfgver", 3);
+ config.setValue("cfgver", 4);
}
Window *Client::openErrorDialog(const std::string &header,
diff --git a/src/defaults.cpp b/src/defaults.cpp
index 02c0b8cbe..c1d1d2927 100644
--- a/src/defaults.cpp
+++ b/src/defaults.cpp
@@ -116,6 +116,8 @@ DefaultsData* getConfigDefaults()
AddDEF("fpslimit", 100);
AddDEF("theme", "jewelry");
AddDEF("showChatColorsList", false);
+ AddDEF("customcursor", false);
+ AddDEF("showDidYouKnow", false);
#else
AddDEF("screenwidth", defaultScreenWidth);
AddDEF("screenheight", defaultScreenHeight);
@@ -127,6 +129,8 @@ DefaultsData* getConfigDefaults()
AddDEF("fpslimit", 60);
AddDEF("theme", "");
AddDEF("showChatColorsList", true);
+ AddDEF("customcursor", true);
+ AddDEF("showDidYouKnow", true);
#endif
AddDEF("screen", false);
AddDEF("hwaccel", false);
@@ -153,11 +157,6 @@ DefaultsData* getConfigDefaults()
AddDEF("ChatLogLength", 0);
AddDEF("enableChatLog", true);
AddDEF("whispertab", true);
-#ifdef ANDROID
- AddDEF("customcursor", false);
-#else
- AddDEF("customcursor", true);
-#endif
AddDEF("showownname", true);
AddDEF("showpickupparticle", true);
AddDEF("showpickupchat", true);
@@ -225,7 +224,6 @@ DefaultsData* getConfigDefaults()
AddDEF("securetrades", true);
AddDEF("unsecureChars", "IO0@#$");
AddDEF("currentTip", 0);
- AddDEF("showDidYouKnow", true);
AddDEF("useLocalTime", false);
AddDEF("enableAdvert", true);
AddDEF("enableMapReduce", true);
@@ -337,7 +335,7 @@ DefaultsData* getConfigDefaults()
AddDEF("uselonglivesprites", false);
AddDEF("uselonglivesounds", true);
AddDEF("screenDensity", 0);
- AddDEF("cfgver", 3);
+ AddDEF("cfgver", 4);
AddDEF("enableDebugLog", false);
AddDEF("doubleClick", true);
AddDEF("useDiagonalSpeed", true);