Don't allow removing the 'All' tab

This commit is contained in:
Jean-Patrick Guerrero 2023-01-19 18:34:43 +01:00
parent 9e1f608846
commit 74e88acadf

View File

@ -446,6 +446,8 @@ end
function i3.remove_minitab(name) function i3.remove_minitab(name)
if not true_str(name) then if not true_str(name) then
return err "i3.remove_minitab: name missing" return err "i3.remove_minitab: name missing"
elseif name == "All" then
return err "i3.remove_minitab: removing the 'All' tab is not allowed"
end end
for i = #i3.minitabs, 1, -1 do for i = #i3.minitabs, 1, -1 do