mirror of
https://github.com/kepler155c/opus
synced 2025-09-02 19:08:03 +00:00
inactivate tabs
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user