1
0
mirror of https://github.com/kepler155c/opus synced 2025-02-03 19:09:08 +00:00

inactivate tabs

This commit is contained in:
kepler155c@gmail.com 2018-12-31 11:35:13 -05:00
parent da20397b22
commit c95c22ff4d

View File

@ -2262,6 +2262,13 @@ function UI.Tabs:selectTab(tab)
end end
end end
function UI.Tabs:setActive(tab, active)
local menuItem = Util.find(self.tabBar.children, 'tabUid', tab.uid)
if menuItem then
menuItem.inactive = not active
end
end
function UI.Tabs:enable() function UI.Tabs:enable()
self.enabled = true self.enabled = true
self.tabBar:enable() self.tabBar:enable()