From 35c0c17d6e1cdfc5b7b284753937a766f643dc43 Mon Sep 17 00:00:00 2001 From: IgorTimofeev Date: Fri, 6 May 2022 20:14:45 +0300 Subject: [PATCH] =?UTF-8?q?=D1=88=D0=BE=D0=B7=D0=B0=D0=BD=D0=B0=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EFI/Full.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/EFI/Full.lua b/EFI/Full.lua index 06194a39..35cd5ffb 100644 --- a/EFI/Full.lua +++ b/EFI/Full.lua @@ -187,8 +187,10 @@ local boot, menuBack, menu, input = status(stringsMain, "Hold Alt to show boot options") local deadline, eventData = uptime() + 1 + while uptime() < deadline do eventData = {pullSignal(deadline - uptime())} + if eventData[1] == stringKeyDown and eventData[4] == 56 then local utilities = { menuElement("Disk management", function() @@ -229,11 +231,7 @@ while uptime() < deadline do tableInsert(filesystemOptions, menuElement("Format", function() status(stringsMain, "Formatting filesystem " .. address) - - for _, file in ipairs(proxy.list("/")) do - proxy.remove(file) - end - + proxy.remove("") updateFilesystems() end, 1)) end