update: migrate to widget.actions
This commit is contained in:
@@ -14,6 +14,9 @@ dependencies = [ "qrencode" ]
|
|||||||
id = "widget"
|
id = "widget"
|
||||||
entry = "widget.luau"
|
entry = "widget.luau"
|
||||||
|
|
||||||
|
[widget.actions]
|
||||||
|
left = "panel-toggle yocraft/qrcode:panel"
|
||||||
|
|
||||||
[[widget.setting]]
|
[[widget.setting]]
|
||||||
key = "glyph"
|
key = "glyph"
|
||||||
type = "glyph"
|
type = "glyph"
|
||||||
|
|||||||
@@ -7,7 +7,3 @@ else
|
|||||||
end
|
end
|
||||||
|
|
||||||
barWidget.setTooltip(noctalia.tr("widget.tooltip"))
|
barWidget.setTooltip(noctalia.tr("widget.tooltip"))
|
||||||
|
|
||||||
function onClick()
|
|
||||||
noctalia.togglePanel("yocraft/qrcode:panel")
|
|
||||||
end
|
|
||||||
|
|||||||
Reference in New Issue
Block a user