From c197c842e88072ca94c2306dfabdc30e363ec59c Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Sun, 7 Sep 2025 18:58:32 +0200 Subject: [PATCH] #CLIENTMENU - add missing func from documentation --- Moose Development/Moose/Core/ClientMenu.lua | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Moose Development/Moose/Core/ClientMenu.lua b/Moose Development/Moose/Core/ClientMenu.lua index 5e7219add..fea72914d 100644 --- a/Moose Development/Moose/Core/ClientMenu.lua +++ b/Moose Development/Moose/Core/ClientMenu.lua @@ -20,7 +20,7 @@ -- -- @module Core.ClientMenu -- @image Core_Menu.JPG --- last change: Jan 2025 +-- last change: Sept 2025 -- TODO ---------------------------------------------------------------------------------------------------------------- @@ -417,7 +417,7 @@ end CLIENTMENUMANAGER = { ClassName = "CLIENTMENUMANAGER", lid = "", - version = "0.1.6", + version = "0.1.7", name = nil, clientset = nil, menutree = {}, @@ -806,6 +806,16 @@ function CLIENTMENUMANAGER:ResetMenuComplete() return self end +--- Remove the entry and all entries below the given entry from the client's F10 menus. +-- @param #CLIENTMENUMANAGER self +-- @param #CLIENTMENU Entry The entry to remove +-- @param Wrapper.Client#CLIENT Client (optional) If given, make this change only for this client. +-- @return #CLIENTMENUMANAGER self +function CLIENTMENUMANAGER:DeleteEntry(Entry,Client) + self:T(self.lid.."DeleteEntry") + return self:DeleteF10Entry(Entry,Client) +end + --- Remove the entry and all entries below the given entry from the client's F10 menus. -- @param #CLIENTMENUMANAGER self -- @param #CLIENTMENU Entry The entry to remove