Minor cleaning

This commit is contained in:
Jean-Patrick Guerrero 2023-02-01 04:17:03 +01:00
parent b31e7a48ab
commit 84416b130b
2 changed files with 3 additions and 5 deletions

View File

@ -24,7 +24,7 @@ i3 = {
data = core.deserialize(storage:get_string"data") or {},
settings = {
debug_mode = true,
debug_mode = false,
max_favs = 6,
max_waypoints = 30,
min_fs_version = 6,

View File

@ -205,7 +205,7 @@ function i3.remove_tab(name)
return err "i3.remove_tab: tab name missing"
end
for i = #i3.tabs, 1, -1 do
for i = #i3.tabs, 2, -1 do
local def = i3.tabs[i]
if def and name == def.name then
remove(i3.tabs, i)
@ -448,11 +448,9 @@ end
function i3.remove_minitab(name)
if not true_str(name) then
return err "i3.remove_minitab: name missing"
elseif name == "all" then
return err "i3.remove_minitab: removing the 'All' tab is not allowed"
end
for i = #i3.minitabs, 1, -1 do
for i = #i3.minitabs, 2, -1 do
local v = i3.minitabs[i]
if v and v.name == name then
remove(i3.minitabs, i)