1
0
mirror of https://github.com/kepler155c/opus synced 2025-09-02 19:08:03 +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
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()
self.enabled = true
self.tabBar:enable()