Skip to content

Commit

Permalink
Properly repeat instead of moving back a few seconds back
Browse files Browse the repository at this point in the history
  • Loading branch information
sabihoshi committed Jul 30, 2021
1 parent f394fb1 commit 6e53bcf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion GenshinLyreMidiPlayer.WPF/GenshinLyreMidiPlayer.WPF.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<UseWPF>true</UseWPF>
<StartupObject>GenshinLyreMidiPlayer.WPF.App</StartupObject>
<ApplicationManifest>app.manifest</ApplicationManifest>
<Version>2.3.0</Version>
<Version>2.3.1</Version>
<ApplicationIcon>item_windsong_lyre.ico</ApplicationIcon>
<Nullable>enable</Nullable>
<RepositoryUrl>https://github.com/sabihoshi/GenshinLyreMidiPlayer</RepositoryUrl>
Expand Down
6 changes: 2 additions & 4 deletions GenshinLyreMidiPlayer.WPF/ViewModels/LyrePlayerViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ public bool CanHitPlayPause
.Any(t => t.CanBePlayed) ?? false;

return Playback is not null
&& hasNotes
&& MaximumTime > TimeSpan.Zero;
&& hasNotes
&& MaximumTime > TimeSpan.Zero;
}
}

Expand Down Expand Up @@ -395,8 +395,6 @@ public async Task PlayPause()
Playback.Stop();
else
{
Playback.Loop = Playlist.Loop == Track;

var time = new MetricTimeSpan(CurrentTime);
Playback.PlaybackStart = time;
Playback.MoveToTime(time);
Expand Down

0 comments on commit 6e53bcf

Please sign in to comment.