Skip to content

Commit

Permalink
Remove some brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
MyBlackMIDIScore committed Oct 16, 2024
1 parent d4585f2 commit cf47173
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/gui/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,12 +293,10 @@ impl GuiWasabiWindow {
});

// If song is finished, pause
{
let length = midi_file.midi_length().unwrap_or(0.0);
let current = midi_file.timer().get_time().as_seconds_f64();
if current > length {
midi_file.timer_mut().pause();
}
let length = midi_file.midi_length().unwrap_or(0.0);
let current = midi_file.timer().get_time().as_seconds_f64();
if current > length {
midi_file.timer_mut().pause();
}

let result = self.render_scene.draw(
Expand Down

0 comments on commit cf47173

Please sign in to comment.