Skip to content

Commit a7e4253

Browse files
committed
LuaMacro: fix ShiftF9 handling in Plugins/Disks menus
1 parent 241b61c commit a7e4253

4 files changed

Lines changed: 10 additions & 4 deletions

File tree

plugins/luamacro/_globalinfo.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function export.GetGlobalInfo()
22
return {
3-
Version = { 3, 0, 0, 914 },
3+
Version = { 3, 0, 0, 915 },
44
MinFarVersion = { 3, 0, 0, 6632 },
55
Guid = win.Uuid("4EBBEFC8-2084-4B7F-94C0-692CE136894D"),
66
Title = "LuaMacro",

plugins/luamacro/changelog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
shmuel 2026-02-06 18:39:22+02:00 - build 915
2+
3+
1. LuaMacro: fix ShiftF9 handling in Plugins/Disks menus.
4+
15
zg 2026-01-16 16:29:31+02:00 - build 914
26

37
1. adaptation to far 3.0.6632.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#include <farversion.hpp>
22

3-
#define PLUGIN_BUILD 914
3+
#define PLUGIN_BUILD 915

plugins/luamacro/luamacro.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,8 +544,10 @@ end
544544

545545
-- TODO: when called from a module's panel, call that module's Configure()
546546
function export.Configure (guid)
547-
local items = utils.GetMenuItems()
548-
if items[guid] then items[guid].action() end
547+
local item = utils.GetMenuItems()[guid]
548+
if item and item.flags.config then
549+
item.action()
550+
end
549551
end
550552

551553
local function Init()

0 commit comments

Comments
 (0)