From 62762ecd3348e504e71183c100086a5db6bbffb0 Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Wed, 18 Oct 2017 18:40:56 +0300 Subject: [PATCH] cyka blyad FAST FIX --- Applications.cfg | 4 ++-- OS.lua | 6 +++++- lib/MineOSCore.lua | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Applications.cfg b/Applications.cfg index ff59f23a..74a55a69 100644 --- a/Applications.cfg +++ b/Applications.cfg @@ -4,7 +4,7 @@ url="https://raw.githubusercontent.com/IgorTimofeev/OpenComputers/master/OS.lua", type="Script", forceDownload=true, - version=3.98, + version=3.99, }, { path="/MineOS/Pictures/MoonTouch.pic", @@ -229,7 +229,7 @@ url="https://raw.githubusercontent.com/IgorTimofeev/OpenComputers/master/lib/MineOSCore.lua", type="Library", preloadFile=true, - version=1.91, + version=1.92, }, { path="/lib/MineOSNetwork.lua", diff --git a/OS.lua b/OS.lua index addedb4c..f5df1f8a 100755 --- a/OS.lua +++ b/OS.lua @@ -744,7 +744,11 @@ local function createOSWindow() end verticalSpaceBetweenIconsSlider.onValueChanged = function() - GUI.error(verticalSpaceBetweenIconsSlider.value) + MineOSCore.properties.verticalSpaceBetweenIcons = math.floor(verticalSpaceBetweenIconsSlider.value) + MineOSInterface.mainContainer.iconField:deleteIconConfig() + MineOSInterface.mainContainer.dockContainer.sort() + + computer.pushSignal("MineOSCore", "updateFileList") end -- Шоб рисовалось в реальном времени diff --git a/lib/MineOSCore.lua b/lib/MineOSCore.lua index 23d41e73..6f8fa3f4 100755 --- a/lib/MineOSCore.lua +++ b/lib/MineOSCore.lua @@ -106,7 +106,7 @@ function MineOSCore.loadPropeties() } for key, value in pairs(defaultValues) do - if not MineOSCore.properties[key] then + if MineOSCore.properties[key] == nil then MineOSCore.properties[key] = value saveLater = true end