From 8a356d338932ec8ee3a507c397d4264de5948554 Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Mon, 14 Sep 2015 19:00:12 +0300 Subject: [PATCH] Update Photoshop.lua --- Applications/Photoshop/Photoshop.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Applications/Photoshop/Photoshop.lua b/Applications/Photoshop/Photoshop.lua index 8ab85c51..374f3b5d 100644 --- a/Applications/Photoshop/Photoshop.lua +++ b/Applications/Photoshop/Photoshop.lua @@ -926,14 +926,11 @@ while true do local data = ecs.universalWindow("auto", "auto", 30, ecs.windowColors.background, true, {"EmptyLine"}, {"CenterText", 0x262626, "Сохранить как"}, {"EmptyLine"}, {"Input", 0x262626, 0x880000, "Путь"}, {"Selector", 0x262626, 0x880000, "PNG", "JPG"}, {"EmptyLine"}, {"Button", 0xbbbbbb, 0xffffff, "OK!"}) if data[1] == "" or data[1] == " " or data[1] == nil then data[1] = "NewImage" end - if data[2] == "" or data[2] == " " or data[2] == nil then data[2] = ".png" end - - ecs.error("data1 = "..data[1]..", data2 = "..data[2]) + + data[2] = "."..string.lower(data[2]) data[1] = data[1]..data[2] - - currentFile = data[1] save(currentFile, data[2]) consoleText = "Файл сохранен как "..currentFile