minor fixes

This commit is contained in:
Manuel Simon Hirsig
2016-08-15 01:54:29 +02:00
parent 5c990d5198
commit c7f617402f
2 changed files with 1 additions and 20 deletions
-11
View File
@@ -5,17 +5,6 @@ function private.valid_level(str)
return level and aux.util.bound(1, 60, level)
end
function private.valid_min_level()
local min_level, max_level = m.blizzard_query.min_level, m.blizzard_query.max_level
min_level = min_level or max_level and 1
return min_level and max_level and min(min_level, max_level) or min_level
end
function private.valid_max_level()
local min_level, max_level = m.blizzard_query.min_level, m.blizzard_query.max_level
return min_level and max_level and max(min_level, max_level) or max_level
end
private.blizzard_query = setmetatable({}, {
__newindex = function(_, key, value)
if key == 'name' then
+1 -9
View File
@@ -120,7 +120,7 @@ function private.create_frames()
this:SetText(valid_input)
end
if (tonumber(m.first_page_input:GetText()) or 1) > (tonumber(this:GetText()) or aux.huge) then
m.first_page_input:SetText(tonumber(this:GetText()))
this:SetText(tonumber(this:GetText()))
end
if m.blizzard_page_index(this:GetText()) and not m.real_time_button:GetChecked() then
this:SetBackdropColor(unpack(aux.gui.color.state.enabled))
@@ -426,10 +426,6 @@ function private.create_frames()
if tostring(valid_level) ~= this:GetText() then
this:SetText(valid_level or '')
end
local valid_max_level = m.valid_max_level()
if tostring(valid_max_level) ~= m.max_level_input:GetText() then
m.max_level_input:SetText(valid_max_level or '')
end
m.update_form()
end)
local label = aux.gui.label(editbox, aux.gui.config.small_font_size)
@@ -455,10 +451,6 @@ function private.create_frames()
if tostring(valid_level) ~= this:GetText() then
this:SetText(valid_level or '')
end
local valid_min_level = m.valid_min_level()
if tostring(valid_min_level) ~= m.min_level_input:GetText() then
m.min_level_input:SetText(valid_min_level or '')
end
m.update_form()
end)
local label = aux.gui.label(editbox, aux.gui.config.medium_font_size)