From 3ec9fa185d1da9f1bcb34db522c1bd0679b48911 Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Mon, 24 Aug 2015 23:12:45 +0300 Subject: [PATCH] Update OS.lua --- Applications/OS.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Applications/OS.lua b/Applications/OS.lua index 5cdc16b7..d799e1d2 100644 --- a/Applications/OS.lua +++ b/Applications/OS.lua @@ -504,8 +504,6 @@ local function biometry() local x, y = math.floor(xSize / 2 - width / 2), math.floor(ySize / 2 - height / 2) - --local oldPixels = ecs.rememberOldPixels(x, y, x + width + 1, y + height) - local Finger = image.load("System/OS/Icons/Finger.png") local function okno(color, textColor, text) @@ -543,16 +541,18 @@ local function biometry() end end - --ecs.drawOldPixels(oldPixels) - Finger = nil users = nil end end -local function launchConfigurator() - if not fs.exists("System/OS/Users.cfg") then - shell.execute("System/OS/Configurator.lua") +--Запустить конфигуратор ОС, если еще не запускался +local function launchConfigurator(force) + if not fs.exists("System/OS/Users.cfg") or force then + while true do + local success, reason = shell.execute("System/OS/Configurator.lua") + if success then break end + end return true end end