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