fix: clear currentText on closing

This commit is contained in:
Yocraft-2000
2026-08-05 13:58:23 +02:00
parent 91a3778a6e
commit f5293f98d7
+3 -1
View File
@@ -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