From 4872bbcee1ae2c6de2b90c6db75aee98922c96c8 Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 18 Feb 2025 23:20:48 +0800 Subject: [PATCH] remove useless name argument in this version of the api --- libs/ux-api/src/widgets/modal.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/libs/ux-api/src/widgets/modal.rs b/libs/ux-api/src/widgets/modal.rs index 96a08b2c2..5efe36296 100644 --- a/libs/ux-api/src/widgets/modal.rs +++ b/libs/ux-api/src/widgets/modal.rs @@ -28,7 +28,6 @@ pub struct Modal<'a> { pub inverted: bool, pub style: GlyphStyle, pub helper_data: Option>, - pub name: String, // optimize draw time top_dirty: bool, @@ -39,7 +38,6 @@ pub struct Modal<'a> { impl<'a> Modal<'a> { pub fn new( - name: &str, action: ActionType, top_text: Option<&str>, bot_text: Option<&str>, @@ -73,7 +71,6 @@ impl<'a> Modal<'a> { inverted, style, helper_data: None, - name: String::from(name), top_dirty: true, bot_dirty: true, top_memoized_height: None,