From dd6d7e645f704b990c18722694aa3006645ad3c2 Mon Sep 17 00:00:00 2001 From: Bendt Date: Sun, 28 Dec 2025 13:37:45 -0500 Subject: [PATCH] fix: Give all widgets unique IDs in HelpScreen - Add unique IDs to all Static widgets (spacer_1, spacer_2, spacer_3) - Fix MountError: 'Tried to insert 3 widgets with same ID' - Help screen now displays correctly when pressing '?' --- src/mail/screens/HelpScreen.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mail/screens/HelpScreen.py b/src/mail/screens/HelpScreen.py index 8aaff73..4299031 100644 --- a/src/mail/screens/HelpScreen.py +++ b/src/mail/screens/HelpScreen.py @@ -33,12 +33,12 @@ class HelpScreen(Screen): yield Static( "╔══════════════════════════════════════════════════════════════════╗\n" "║" + " " * 68 + "║\n" - "║" + " LUK Mail - Keyboard Shortcuts & Help".center(68) + " ║\n" + "║" + " LUK Mail - Keyboard Shortcuts & Help".center(68) + " ║\n" "╚════════════════════════════════════════════════════════════════════╝" ) # Custom instructions section - yield Static("", id="spacer") + yield Static("", id="spacer_1") yield Static("[b cyan]Quick Actions[/b cyan]", id="instructions_title") yield Static("─" * 70, id="instructions_separator") yield Static("") @@ -58,7 +58,7 @@ class HelpScreen(Screen): yield Static("") # Auto-generated keybindings section - yield Static("", id="spacer") + yield Static("", id="spacer_2") yield Static("[b cyan]Keyboard Shortcuts[/b cyan]", id="bindings_title") yield Static("─" * 70, id="bindings_separator") yield Static("") @@ -106,7 +106,7 @@ class HelpScreen(Screen): yield Static("") # Notification compression section - yield Static("", id="spacer") + yield Static("", id="spacer_3") yield Static( "[b cyan]Notification Email Compression[/b cyan]", id="compression_title",