Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
rsjaffe committed Feb 3, 2016
2 parents dcdb0c3 + 8a2e2a1 commit 34d8eb6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Source/LRPlugin/MIDI2LR.lrplugin/Info.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ return {
},
--]]
},
VERSION = { major=0, minor=9, revision=5, build=1}
VERSION = { major=0, minor=9, revision=5, build=2}
}
14 changes: 8 additions & 6 deletions Source/LRPlugin/MIDI2LR.lrplugin/Limits.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,14 @@ for _, p in ipairs(DisplayOrder) do
end

--clean up the preferences of discarded Limits and fix label and order
for k,v in pairs(ProgramPreferences.Limits) do
if Parameters[k] then
ProgramPreferences.Limits[k]['label'] = ParamList.LimitEligible[k][1]
ProgramPreferences.Limits[k]['order'] = ParamList.LimitEligible[k][2]
else
ProgramPreferences.Limits[k] = nil --erase unused
if ProgramPreferences.Limits ~= nil and type(ProgramPreferences.Limits)=='table' then
for k,v in pairs(ProgramPreferences.Limits) do
if Parameters[k] then
ProgramPreferences.Limits[k]['label'] = ParamList.LimitEligible[k][1]
ProgramPreferences.Limits[k]['order'] = ParamList.LimitEligible[k][2]
else
ProgramPreferences.Limits[k] = nil --erase unused
end
end
end

Expand Down

0 comments on commit 34d8eb6

Please sign in to comment.