Skip to content

Commit

Permalink
Fixed small bug in default settings
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Jul 17, 2018
1 parent e6c4a97 commit bd2474a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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*)?$/
8 changes: 7 additions & 1 deletion REFlexUpdater.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit bd2474a

Please sign in to comment.