Small fix
This commit is contained in:
parent
8289d290a3
commit
9e1f608846
16
src/gui.lua
16
src/gui.lua
|
@ -1391,8 +1391,20 @@ local function get_header_items_fs(fs, data)
|
||||||
end
|
end
|
||||||
|
|
||||||
box(X + 1, 0.2, 0.01, 0.5, "#bababa50")
|
box(X + 1, 0.2, 0.01, 0.5, "#bababa50")
|
||||||
local cat = recipe_filter_set() and {{"all", "all items"}} or
|
|
||||||
{{"all", "all items"}, {"node", "nodes only"}, {"item", "items only"}}
|
local cat = {{"all", "all items"}}
|
||||||
|
|
||||||
|
if not recipe_filter_set() then
|
||||||
|
for _, v in ipairs(i3.minitabs) do
|
||||||
|
if v.name == "Nodes" then
|
||||||
|
insert(cat, {"node", "nodes only"})
|
||||||
|
end
|
||||||
|
|
||||||
|
if v.name == "Items" then
|
||||||
|
insert(cat, {"item", "items only"})
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
for i in ipairs(cat) do
|
for i in ipairs(cat) do
|
||||||
local name, desc = unpack(cat[i])
|
local name, desc = unpack(cat[i])
|
||||||
|
|
Ŝarĝante…
Reference in New Issue