From 7e6ca328734f1e3ed05440a064b78bd0133dd7eb Mon Sep 17 00:00:00 2001 From: Yocraft-2000 <304616174+Yocraft-2000@users.noreply.github.com> Date: Mon, 3 Aug 2026 22:04:02 +0200 Subject: [PATCH] feat(QoL): idle status with generate button off --- qrcode/panel.luau | 5 +++-- qrcode/translations/en.json | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/qrcode/panel.luau b/qrcode/panel.luau index 0e9e53c..bbab2b4 100644 --- a/qrcode/panel.luau +++ b/qrcode/panel.luau @@ -6,6 +6,7 @@ local status = "idle" local imageSize = 400 +local generateButton = noctalia.getConfig("generate_button") local notifyConf = noctalia.getConfig("notify") local function notify(text, error) @@ -23,7 +24,7 @@ local function statusText() elseif status == "copied" then return noctalia.tr("panel.status.copied") else - return noctalia.tr("panel.status.idle") + return noctalia.tr(generateButton and "panel.status.idle" or "panel.status.idlebis") end end @@ -38,7 +39,7 @@ local function render() }) } - if noctalia.getConfig("generate_button") then + if generateButton then table.insert( rowContent, ui.button({ diff --git a/qrcode/translations/en.json b/qrcode/translations/en.json index cd54f30..225fc3d 100644 --- a/qrcode/translations/en.json +++ b/qrcode/translations/en.json @@ -50,7 +50,8 @@ "error": "Error: {message}", "ready": "QR code ready. Scan it here or click it to copy.", "copied": "QR code copied to clipboard.", - "idle": "Enter some text, then press Generate." + "idle": "Enter some text, then press Generate.", + "idlebis": "Enter some text, then press Enter." }, "error": { "generate_failed": "failed to generate the QR code.",