diff --git a/qrcode/plugin.toml b/qrcode/plugin.toml index 452bd9c..9955908 100644 --- a/qrcode/plugin.toml +++ b/qrcode/plugin.toml @@ -14,6 +14,9 @@ dependencies = [ "qrencode" ] id = "widget" entry = "widget.luau" + [widget.actions] + left = "panel-toggle yocraft/qrcode:panel" + [[widget.setting]] key = "glyph" type = "glyph" diff --git a/qrcode/widget.luau b/qrcode/widget.luau index b7c9683..387fa32 100644 --- a/qrcode/widget.luau +++ b/qrcode/widget.luau @@ -7,7 +7,3 @@ else end barWidget.setTooltip(noctalia.tr("widget.tooltip")) - -function onClick() - noctalia.togglePanel("yocraft/qrcode:panel") -end