fix: top bar buttons not inheriting top bar visibility

This commit is contained in:
tomasklaen
2022-09-13 11:56:47 +02:00
parent 386953b78e
commit 7f05a75db4

View File

@@ -2917,6 +2917,7 @@ local TopBarButton = class(Element)
function TopBarButton:new(id, props) return Class.new(self, id, props) --[[@as CycleButton]] end
function TopBarButton:init(id, props)
Element.init(self, id, props)
self.anchor_id = 'top_bar'
self.icon = props.icon
self.background = props.background
self.command = props.command