From e6a2f1f4eecb14d323bff7b3bf4cef6c4fcd98d9 Mon Sep 17 00:00:00 2001 From: maxomatic458 <104733404+maxomatic458@users.noreply.github.com> Date: Sun, 7 Jan 2024 02:50:28 +0100 Subject: [PATCH] add with_description_offset to builder --- src/menu/ide_menu.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/menu/ide_menu.rs b/src/menu/ide_menu.rs index 2841b552..d129bf89 100644 --- a/src/menu/ide_menu.rs +++ b/src/menu/ide_menu.rs @@ -286,6 +286,13 @@ impl IdeMenu { self.default_details.max_description_height = max_description_height; self } + + /// Menu builder with new description offset + #[must_use] + pub fn with_description_offset(mut self, description_offset: usize) -> Self { + self.default_details.description_offset = description_offset; + self + } } // Menu functionality