fix: desition -> decision
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Zoltan Timar
2026-02-18 21:42:40 +01:00
parent 0640964ee4
commit 7b263bb454
20 changed files with 109 additions and 103 deletions

View File

@@ -5,11 +5,11 @@ ConfigurationWindow = {
function ConfigurationWindow.init()
ConfigurationWindow.controls = {
UI.create_desition_item(
UI.create_decision_item(
"Save",
function() Config.save() end
),
UI.create_desition_item(
UI.create_decision_item(
"Restore Defaults",
function() Config.restore_defaults() end
),
@@ -40,7 +40,7 @@ function ConfigurationWindow.draw()
Print.text(label_text, x_start, current_y, color)
Print.text(value_text, value_x, current_y, color)
end
elseif control.type == "desition_item" then
elseif control.type == "decision_item" then
local label_text = control.label
if i == ConfigurationWindow.selected_control then
color = Config.colors.item
@@ -82,9 +82,9 @@ function ConfigurationWindow.update()
elseif btnp(3) then local new_value = math.min(control.max, current_value + control.step)
control.set(new_value)
end
elseif control.type == "desition_item" then
elseif control.type == "decision_item" then
if Input.menu_confirm() then
control.desition()
control.decision()
end
end
end