From 861c05cdaa5a83d29f4f35882aa2d62661ddc118 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Mon, 2 Feb 2026 15:22:39 -0600 Subject: [PATCH] small refactors --- src/ui/song_editor.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ui/song_editor.rs b/src/ui/song_editor.rs index 9dd2fd4..a817cc0 100644 --- a/src/ui/song_editor.rs +++ b/src/ui/song_editor.rs @@ -369,14 +369,17 @@ impl SongEditor { } Message::PauseVideo => { if let Some(video) = &mut self.video { - let paused = video.paused(); - video.set_paused(!paused); + video.set_paused(!video.paused()); } } Message::UpdateStrokeSize(size) => { self.stroke_size = size; if let Some(song) = &mut self.song { - song.stroke_size = Some(size); + if size == 0 { + song.stroke_size = None; + } else { + song.stroke_size = Some(size); + } let song = song.to_owned(); return self.update_song(song); }