From f5293f98d7a282d8787d2f0b2284b5e3cd8c2892 Mon Sep 17 00:00:00 2001 From: Yocraft-2000 <304616174+Yocraft-2000@users.noreply.github.com> Date: Wed, 5 Aug 2026 13:58:23 +0200 Subject: [PATCH] fix: clear currentText on closing --- qrcode/panel.luau | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qrcode/panel.luau b/qrcode/panel.luau index 7fe9c78..ffb1262 100644 --- a/qrcode/panel.luau +++ b/qrcode/panel.luau @@ -51,7 +51,7 @@ local function render() placeholder = noctalia.tr("panel.placeholder"), onChange = "onTextChange", onSubmit = "onTextSubmit", - value = keepOnClose and currentText or "" + value = currentText }) } @@ -242,6 +242,8 @@ function onClose() if not keepOnClose and imagePath ~= nil then noctalia.removeFile(imagePath) imagePath = nil + errorMessage = nil + currentText = "" render() -- calling render() here so it doesn't try to render the image when opening the panel end