From 5b21114ebdbd76be8f83edfb46045d64f408c58e Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Tue, 22 Jul 2025 10:46:01 -0400 Subject: [PATCH] fix: empty theme shouldn't be possible Signed-off-by: Henry Schreiner --- src/uproot_browser/tui/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uproot_browser/tui/tools.py b/src/uproot_browser/tui/tools.py index 2376ce9..e64beb7 100644 --- a/src/uproot_browser/tui/tools.py +++ b/src/uproot_browser/tui/tools.py @@ -11,7 +11,7 @@ def compose(self) -> textual.app.ComposeResult: yield textual.widgets.Label("Tools") with textual.widgets.Collapsible(title="Theme", collapsed=False): themes = self.app.available_themes - yield textual.widgets.Select([(t, t) for t in themes]) + yield textual.widgets.Select([(t, t) for t in themes], allow_blank=False) @textual.on(textual.widgets.Select.Changed) def select_changed(self, event: textual.widgets.Select.Changed) -> None: