From f82d25f5c225d27964992c51361a920be622452f Mon Sep 17 00:00:00 2001 From: NeoCoderMatrix86 <40752681+NeoCoderMatrix86@users.noreply.github.com> Date: Mon, 11 Nov 2024 15:21:55 +0100 Subject: [PATCH] Update TrackListItem.razor --- AudioCuesheetEditor/Shared/TrackList/TrackListItem.razor | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/AudioCuesheetEditor/Shared/TrackList/TrackListItem.razor b/AudioCuesheetEditor/Shared/TrackList/TrackListItem.razor index 6c789e81..f9bf3450 100644 --- a/AudioCuesheetEditor/Shared/TrackList/TrackListItem.razor +++ b/AudioCuesheetEditor/Shared/TrackList/TrackListItem.razor @@ -24,6 +24,7 @@ along with Foobar. If not, see @inject ApplicationOptionsTimeSpanParser _applicationOptionsTimeSpanParser @inject MusicBrainzDataProvider _musicBrainzDataProvider @inject ITextLocalizerService _localizationService +@inject ILocalStorageOptionsProvider _localStorageOptionsProvider @if (Cuesheet != null) @@ -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(); + Cuesheet?.AddTrack(copy, applicationOptions); _traceChangeManager.TraceChanges(copy); await EditTrackModal(copy); }