Skip to content

Commit

Permalink
implementation of the access counter for library items
Browse files Browse the repository at this point in the history
  • Loading branch information
Henrik-Peters committed Jun 8, 2018
1 parent cf2b4fc commit 5c6f45b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ActivFlex Media/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1085,6 +1085,7 @@ private void ImageItemClick(LibraryImageViewModel image)
{
if (!HandleItemSelection(image)) {
DefaultImageLaunch.Execute(image.Proxy);
StorageEngine.IncreaseAccessCounter(image.ItemID);
}
}

Expand All @@ -1095,6 +1096,7 @@ private void MusicItemClick(LibraryMusicViewModel music)
{
if (!HandleItemSelection(music)) {
DefaultMusicLaunch.Execute(music.Proxy);
StorageEngine.IncreaseAccessCounter(music.ItemID);
}
}

Expand All @@ -1105,6 +1107,7 @@ private void VideoItemClick(LibraryVideoViewModel video)
{
if (!HandleItemSelection(video)) {
DefaultVideoLaunch.Execute(video.Proxy);
StorageEngine.IncreaseAccessCounter(video.ItemID);
}
}

Expand Down

0 comments on commit 5c6f45b

Please sign in to comment.