Make option to autoplay previews on song selection
This commit is contained in:
1 parent
f5b83608b0
commit
c31fdb7839
9 files changed
+112
-6
No files matched your search
@@ -364,6 +364,10 @@ namespace VocaluxeLib.Menu.SongMenu
|
||||
if (_SelectionNr > 0 && moveAllowed)
|
||||
{
|
||||
_SelectionNr--;
|
||||
if (CBase.Config.GetAutoplayPreviews() == EOffOn.TR_CONFIG_ON)
|
||||
{
|
||||
_PreviewNr = _SelectionNr;
|
||||
}
|
||||
keyEvent.Handled = true;
|
||||
}
|
||||
break;
|
||||
@@ -372,6 +376,10 @@ namespace VocaluxeLib.Menu.SongMenu
|
||||
if (moveAllowed)
|
||||
{
|
||||
_SelectionNr++;
|
||||
if (CBase.Config.GetAutoplayPreviews() == EOffOn.TR_CONFIG_ON)
|
||||
{
|
||||
_PreviewNr = _SelectionNr;
|
||||
}
|
||||
keyEvent.Handled = true;
|
||||
}
|
||||
break;
|
||||
@@ -388,6 +396,10 @@ namespace VocaluxeLib.Menu.SongMenu
|
||||
else if (_SelectionNr >= 1 && moveAllowed)
|
||||
{
|
||||
_SelectionNr -= 1;
|
||||
if (CBase.Config.GetAutoplayPreviews() == EOffOn.TR_CONFIG_ON)
|
||||
{
|
||||
_PreviewNr = _SelectionNr;
|
||||
}
|
||||
keyEvent.Handled = true;
|
||||
}
|
||||
break;
|
||||
@@ -404,6 +416,10 @@ namespace VocaluxeLib.Menu.SongMenu
|
||||
else if (moveAllowed)
|
||||
{
|
||||
_SelectionNr += 1;
|
||||
if(CBase.Config.GetAutoplayPreviews() == EOffOn.TR_CONFIG_ON)
|
||||
{
|
||||
_PreviewNr = _SelectionNr;
|
||||
}
|
||||
keyEvent.Handled = true;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user