From 0aa1441ee66cd23181610a633f5e744db95d93cd Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Tue, 31 May 2016 17:12:21 +0300 Subject: [PATCH] =?UTF-8?q?=D0=95=D0=B1=D0=B0=D1=82=D1=8C=20=D0=B3=D1=80?= =?UTF-8?q?=D0=B0=D1=84=D0=BE=D0=BD=D0=B8=D1=81=D1=82=D0=BE!=20=D0=98=20?= =?UTF-8?q?=D1=84=D0=B8=D1=87=D0=B8=20=D0=BF=D0=B8=D0=B7=D0=B4=D0=B0=D1=82?= =?UTF-8?q?=D1=8B=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Applications/Finder/Finder.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Applications/Finder/Finder.lua b/Applications/Finder/Finder.lua index 1876c903..6f48db73 100644 --- a/Applications/Finder/Finder.lua +++ b/Applications/Finder/Finder.lua @@ -175,7 +175,11 @@ local function drawTopBar() drawCloses() local x, y = sizes.xFinder + 2, sizes.yFinder + 1 obj.historyBack = GUI.button(x, y, 3, 1, 0xffffff, 0x262626, 0xAAAAAA, 0x000000, "<"); x = x + obj.historyBack.width + 1 + obj.historyBack.colors.disabled.button, obj.historyBack.colors.disabled.text = 0xFFFFFF, 0xdddddd + if currentWorkPathHistoryElement == 1 then obj.historyBack.disabled = true; obj.historyBack:draw() end obj.historyForward = GUI.button(x, y, 3, 1, 0xffffff, 0x262626, 0xAAAAAA, 0x000000, ">"); x = x + obj.historyForward.width + 2 + obj.historyForward.colors.disabled.button, obj.historyForward.colors.disabled.text = 0xFFFFFF, 0xdddddd + if currentWorkPathHistoryElement == #workPathHistory then obj.historyForward.disabled = true; obj.historyForward:draw() end local cyka = { {objName = "sortingMethod", text = sortingMethods[config.currentSortingMethod], active = false}, @@ -397,6 +401,16 @@ while true do end end clickedAtEmptyArea = false + elseif obj.historyBack:isClicked(eventData[3], eventData[4]) then + obj.historyBack:press(0.2) + currentWorkPathHistoryElement = currentWorkPathHistoryElement - 1 + getListAndDrawAll() + clickedAtEmptyArea = false + elseif obj.historyForward:isClicked(eventData[3], eventData[4]) then + obj.historyForward:press(0.2) + currentWorkPathHistoryElement = currentWorkPathHistoryElement + 1 + getListAndDrawAll() + clickedAtEmptyArea = false elseif obj.search:isClicked(eventData[3], eventData[4]) then searchBarText = "" searchBarText = drawSearchBar(false)