Skip to content

Commit

Permalink
Меню, выводимому функцией Panel.CustomSortMenu, присвоен GUID "C323FB…
Browse files Browse the repository at this point in the history
…CF-6803-4F2C-B8B4-E576E7F125DC".
  • Loading branch information
shmuz committed Feb 19, 2016
1 parent 8a26756 commit 6898dc5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/luamacro/_globalinfo.lua
@@ -1,6 +1,6 @@
function export.GetGlobalInfo()
return {
Version = { 1, 0, 0, 557 },
Version = { 1, 0, 0, 558 },
MinFarVersion = { 3, 0, 0, 4450 },
Guid = win.Uuid("4EBBEFC8-2084-4B7F-94C0-692CE136894D"),
Title = "LuaMacro",
Expand Down
6 changes: 5 additions & 1 deletion plugins/luamacro/changelog
@@ -1,4 +1,8 @@
shmuel 19.02.2016 21:32:01 +0200 - build 557
shmuel 19.02.2016 23:36:00 +0200 - build 558

1. Меню, выводимому функцией Panel.CustomSortMenu, присвоен GUID "C323FBCF-6803-4F2C-B8B4-E576E7F125DC".

shmuel 19.02.2016 21:32:01 +0200 - build 557

1. M#3175: "Отключить в LuaMacro редирект WOW64 для функций работы с реестром"
LuaFAR: добавлена функция win.DeleteRegKeyEx. Описание в мануале.
Expand Down
2 changes: 1 addition & 1 deletion plugins/luamacro/luamacro.rc
@@ -1,6 +1,6 @@
#include <farversion.hpp>

#define PLUGIN_BUILD 557
#define PLUGIN_BUILD 558
#define PLUGIN_DESC "Lua Macros for Far Manager"
#define PLUGIN_NAME "LuaMacro"
#define PLUGIN_FILENAME "luamacro.dll"
Expand Down
3 changes: 2 additions & 1 deletion plugins/luamacro/panelsort.lua
Expand Up @@ -114,12 +114,13 @@ local function SetCustomSortMode (nMode, whatpanel)
end

local function CustomSortMenu()
local Id = win.Uuid("C323FBCF-6803-4F2C-B8B4-E576E7F125DC")
local items, bkeys = {}, {{BreakKey="C+RETURN"},{BreakKey="CS+RETURN"}}
for k,v in pairs(CustomSortModes) do
items[#items+1] = { text=v.Description and tostring(v.Description) or Msg.PSDefaultMenuItemText..k; Mode=k; }
end
table.sort(items, function(a,b) return a.Mode < b.Mode end)
local r, pos = far.Menu({Title=Msg.PSMenuTitle}, items, bkeys)
local r, pos = far.Menu({Title=Msg.PSMenuTitle, Id=Id}, items, bkeys)
if r then
if r.BreakKey == "C+RETURN" then
SetCustomSortMode(items[pos].Mode,1)
Expand Down

0 comments on commit 6898dc5

Please sign in to comment.