mirror of
https://github.com/kepler155c/opus
synced 2025-01-24 22:26:53 +00:00
inactivate tabs
This commit is contained in:
parent
da20397b22
commit
c95c22ff4d
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user