diff --git a/crates/ui-widgets/src/menu/level.rs b/crates/ui-widgets/src/menu/level.rs index 09901a65cc..e6b9e8eb3c 100644 --- a/crates/ui-widgets/src/menu/level.rs +++ b/crates/ui-widgets/src/menu/level.rs @@ -41,6 +41,9 @@ struct OpenSubmenu { rect: Option, } +/// A level's letters (each row's mnemonic, or none) with the folder and labels they were assigned for. +type KeptLetters = (Folder, Vec, Vec>); + #[derive(Default)] struct LevelState { /// The rows of the pass `pass`, in the order they registered. @@ -68,7 +71,7 @@ struct LevelState { /// The last assignment of letters, with the labels and folder it was made for. Every row of a level asks for its /// letter in every pass, and assigning them all for each row made opening a long menu or submenu cost many times /// a plain row's frame: the letters are assigned again only when the labels or the folder change. - letters: Option<(Folder, Vec, Vec>)>, + letters: Option, } impl LevelState {