From a700e98c4b908e0147a48ad3f208c9ad8ad29906 Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Thu, 22 Mar 2018 12:40:52 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A2=D0=B0=D0=BA-=D1=82=D0=BE=20=D0=BB=D1=83?= =?UTF-8?q?=D1=87=D1=88=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Applications/AppMarket/Main.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Applications/AppMarket/Main.lua b/Applications/AppMarket/Main.lua index 0521961c..ed666030 100644 --- a/Applications/AppMarket/Main.lua +++ b/Applications/AppMarket/Main.lua @@ -349,14 +349,9 @@ end local function deletePublication(publication) local container = MineOSInterface.addUniversalContainer(MineOSInterface.mainContainer, localization.areYouSure) - local buttonsLayout = container.layout:addChild(newButtonsLayout(1, 1, container.layout.width, 2)) + local buttonsLayout = container.layout:addChild(newButtonsLayout(1, 1, container.layout.width, 3)) - buttonsLayout:addChild(GUI.adaptiveButton(1, 1, 2, 0, 0xA5A5A5, 0x2D2D2D, 0x0, 0xE1E1E1, localization.no)).onTouch = function() - container:delete() - MineOSInterface.OSDraw() - end - - buttonsLayout:addChild(GUI.adaptiveButton(1, 1, 2, 0, 0xE1E1E1, 0x2D2D2D, 0x0, 0xE1E1E1, localization.yes)).onTouch = function() + buttonsLayout:addChild(GUI.adaptiveRoundedButton(1, 1, 2, 0, 0xE1E1E1, 0x2D2D2D, 0x0, 0xE1E1E1, localization.yes)).onTouch = function() local success, reason = RawAPIRequest("delete", { token = user.token, file_id = publication.file_id, @@ -369,6 +364,11 @@ local function deletePublication(publication) GUI.error(reason) end end + + buttonsLayout:addChild(GUI.adaptiveRoundedButton(1, 1, 2, 0, 0xA5A5A5, 0x2D2D2D, 0x0, 0xE1E1E1, localization.no)).onTouch = function() + container:delete() + MineOSInterface.OSDraw() + end end --------------------------------------------------------------------------------