mirror of
https://github.com/minetest-mods/i3.git
synced 2024-12-24 18:00:38 +01:00
Don't allow removing the 'All' tab
This commit is contained in:
parent
9e1f608846
commit
74e88acadf
@ -446,6 +446,8 @@ 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
|
||||
|
Loading…
Reference in New Issue
Block a user