From a490b350683832b7a227cb8edef86348c7bb8257 Mon Sep 17 00:00:00 2001 From: Yocraft-2000 <304616174+Yocraft-2000@users.noreply.github.com> Date: Tue, 4 Aug 2026 00:30:50 +0200 Subject: [PATCH] update: migrate to widget.actions --- qrcode/plugin.toml | 3 +++ qrcode/widget.luau | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) 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