diff --git a/psst-gui/src/ui/lyrics.rs b/psst-gui/src/ui/lyrics.rs index 0c02c32f..af48928e 100644 --- a/psst-gui/src/ui/lyrics.rs +++ b/psst-gui/src/ui/lyrics.rs @@ -75,10 +75,11 @@ fn track_lyrics_widget() -> impl Widget { .link() .rounded(theme::BUTTON_BORDER_RADIUS) .on_left_click(|ctx, _, c, _| { - ctx.submit_command( - cmd::SKIP_TO_POSITION - .with(c.data.start_time_ms.parse::().unwrap()), - ) + if c.data.start_time_ms.parse::().unwrap() != 0 { + ctx.submit_command( + cmd::SKIP_TO_POSITION.with(c.data.start_time_ms.parse::().unwrap()) + ) + } }) }) }, @@ -91,4 +92,4 @@ fn track_lyrics_widget() -> impl Widget { |_, data, _| data.lyrics.defer(()), |_, data, r| data.lyrics.update(((), r.1)), ) -} +} \ No newline at end of file