From bd2474a89c63dacb570d01045c750fbcbc97054c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= <pawelj@iosphe.re>
Date: Mon, 16 Jul 2018 21:08:11 +0200
Subject: [PATCH] Fixed small bug in default settings

---
 .travis.yml       | 5 ++++-
 REFlexUpdater.lua | 8 +++++++-
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 9fafcb6..acc80a4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,8 +6,11 @@ addons:
     packages:
     - pandoc
 
+install:
+  - echo -e "[alias]\nclone = clone --insecure" > ~/.hgrc
+
 script: curl -s https://raw.githubusercontent.com/BigWigsMods/packager/master/release.sh | bash
 
 branches:
   only:
-  - /^\d+\.\d+(\.\d+)?(-\S*)?$/
+  - /^v\d+\.\d+(\.\d+)?(-\S*)?$/
diff --git a/REFlexUpdater.lua b/REFlexUpdater.lua
index 76ea513..4cd8615 100644
--- a/REFlexUpdater.lua
+++ b/REFlexUpdater.lua
@@ -7,7 +7,7 @@ function RE:UpdateSettings()
   if RE.Settings.ConfigVersion ~= RE.Version then
     if RE.Settings.ConfigVersion < 220 then
       RE.Settings.CurrentTab = 1
-      RE.Settings.Filters = {["Spec"] = _G.ALL, ["Map"] = 1, ["Bracket"] = 1, ["DateMode"] = 1, ["Date"] = {0, 0}}
+      RE.Settings.Filters = {["Spec"] = _G.ALL, ["Map"] = 1, ["Bracket"] = 1, ["Date"] = {0, 0}, ["DateMode"] = 1}
       RE.Settings.ConfigVersion = 220
     end
     if RE.Settings.ConfigVersion < 234 then
@@ -19,6 +19,12 @@ function RE:UpdateSettings()
       RE.Settings.LDBSide = "A"
       RE.Settings.ConfigVersion = 240
     end
+    if RE.Settings.ConfigVersion < 250 then
+      if not RE.Settings.Filters.DateMode then
+        RE.Settings.Filters.DateMode = 1
+      end
+      RE.Settings.ConfigVersion = 250
+    end
   end
 end