mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-26 05:14:21 +00:00
tabs:AddTab now sets object visibility properly
This commit is contained in:
parent
2e71e96cf5
commit
9aaf07f66f
@ -305,6 +305,10 @@ function newobject:AddTab(name, object, tip, image, onopened, onclosed)
|
||||
object.staticx = 0
|
||||
object.staticy = 0
|
||||
|
||||
if tabnumber ~= 1 then
|
||||
object.visible = false
|
||||
end
|
||||
|
||||
local tab = loveframes.objects["tabbutton"]:new(self, name, tabnumber, tip, image, onopened, onclosed)
|
||||
|
||||
table.insert(self.children, object)
|
||||
|
Loading…
Reference in New Issue
Block a user