Skip to content

Commit

Permalink
adding initial music folder no longer redirects to settings page
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorinChess committed Aug 12, 2024
1 parent 2521bed commit 9cec8e5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Music.WPF/ViewModels/MyMusicViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ public sealed class MyMusicViewModel : BaseViewModel, INavigation
#region Private Members

private readonly IServiceProvider _serviceProvider;
private readonly NavigationStore _navigationStore;
private readonly TrackStore _trackStore;
private ICommand _addMusicFolderCommand;

Expand Down Expand Up @@ -110,10 +109,9 @@ public string PlayTime

#endregion

public MyMusicViewModel(IServiceProvider serviceProvider, NavigationStore navigationStore, TrackStore trackStore, ListComponentViewModel listComponentViewModel)
public MyMusicViewModel(IServiceProvider serviceProvider, TrackStore trackStore, ListComponentViewModel listComponentViewModel)
{
_serviceProvider = serviceProvider;
_navigationStore = navigationStore;
_trackStore = trackStore;
_trackStore.AvailableTracksChanged += OnAvailableTrackChanged;

Expand Down Expand Up @@ -143,8 +141,6 @@ private void AddMusicFolder()
{
var viewModel = _serviceProvider.GetRequiredService<SettingsViewModel>();

_navigationStore.CurrentViewModel = viewModel;

viewModel.SelectMusicFilesFolderCommand.Execute(null);
}

Expand Down

0 comments on commit 9cec8e5

Please sign in to comment.