File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,8 @@ def on_option_list_option_highlighted(
6868 def update_border (self , _ ) -> None :
6969 self .text .styles .border = (
7070 cast (
71- EdgeType , self .sidebar .get_option_at_index (self .sidebar .highlighted ).id
71+ EdgeType ,
72+ self .sidebar .get_option_at_index (self .sidebar .highlighted or 0 ).id ,
7273 ),
7374 self .theme_variables ["border" ],
7475 )
Original file line number Diff line number Diff line change @@ -62,7 +62,6 @@ def on_load(self) -> None:
6262 self .bind (
6363 "ctrl+p" , "focus('duration-input')" , description = "Focus: Duration Input"
6464 )
65- self .bind ("ctrl+b" , "toggle_dark" , description = "Toggle Dark" )
6665
6766 def compose (self ) -> ComposeResult :
6867 self .animated_bar = Bar ()
@@ -112,9 +111,6 @@ def on_input_changed(self, event: Input.Changed) -> None:
112111 if new_duration is not None :
113112 self .duration = new_duration
114113
115- def action_toggle_dark (self ) -> None :
116- self .dark = not self .dark
117-
118114
119115def _try_float (string : str ) -> float | None :
120116 try :
You can’t perform that action at this time.
0 commit comments