Skip to content

Commit

Permalink
Update TrackListItem.razor
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoCoderMatrix86 committed Nov 11, 2024
1 parent b810485 commit f82d25f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions AudioCuesheetEditor/Shared/TrackList/TrackListItem.razor
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ along with Foobar. If not, see
@inject ApplicationOptionsTimeSpanParser _applicationOptionsTimeSpanParser
@inject MusicBrainzDataProvider _musicBrainzDataProvider
@inject ITextLocalizerService _localizationService
@inject ILocalStorageOptionsProvider _localStorageOptionsProvider

<Validations @ref="validations">
@if (Cuesheet != null)
Expand Down Expand Up @@ -294,8 +295,8 @@ along with Foobar. If not, see
async Task CopyTrackClicked(Track trackToCopy)
{
var copy = new Track(trackToCopy);
//TODO
// Cuesheet?.AddTrack(copy, applicationOptions);
var applicationOptions = await _localStorageOptionsProvider.GetOptions<ApplicationOptions>();
Cuesheet?.AddTrack(copy, applicationOptions);
_traceChangeManager.TraceChanges(copy);
await EditTrackModal(copy);
}
Expand Down

0 comments on commit f82d25f

Please sign in to comment.