From e3f6dea56cacfe29f7d538dd60c32088b7198367 Mon Sep 17 00:00:00 2001 From: IgorTimofeev <11760002+IgorTimofeev@users.noreply.github.com> Date: Wed, 18 May 2022 22:26:27 +0300 Subject: [PATCH] Update System.lua --- Libraries/System.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Libraries/System.lua b/Libraries/System.lua index 35ffa785..2c755f52 100755 --- a/Libraries/System.lua +++ b/Libraries/System.lua @@ -1505,9 +1505,10 @@ local function gridIconFieldBackgroundObjectEventHandler(workspace, object, e1, if e4 == 28 then -- Если при нажатии энтера была выделенна ровно одна иконка, она попытается открыться local selectedIcon + for i = 2, #iconField.children do if object.parent.children[i].selected then - if selectedIcon ~= nil then + if not selectedIcon then -- Больше одной иконки выбрано return end @@ -1517,8 +1518,8 @@ local function gridIconFieldBackgroundObjectEventHandler(workspace, object, e1, end if selectedIcon then - selectedIcon:launch () - workspace:draw () + selectedIcon:launch() + workspace:draw() end end end