From da471bd4eb8665e397c3d883fa592a7edafc0a41 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Mon, 6 Jan 2025 13:08:42 +0300 Subject: [PATCH] add refresh button to scripts page --- res/layouts/pages/scripts.xml | 11 ++++++++--- res/layouts/pages/scripts.xml.lua | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/res/layouts/pages/scripts.xml b/res/layouts/pages/scripts.xml index a22e5e91..d5c44803 100644 --- a/res/layouts/pages/scripts.xml +++ b/res/layouts/pages/scripts.xml @@ -1,6 +1,11 @@ - - - + + + + + + diff --git a/res/layouts/pages/scripts.xml.lua b/res/layouts/pages/scripts.xml.lua index 3d0faa84..259792b8 100644 --- a/res/layouts/pages/scripts.xml.lua +++ b/res/layouts/pages/scripts.xml.lua @@ -10,7 +10,7 @@ function run_script(path) start_coroutine(chunk, path) end -local function refresh() +function refresh() document.list:clear() local available = pack.get_available()