Removing two "Code Smells"
This commit is contained in:
1 parent
3fcb22269a
commit
64c0b392a9
1 file changed
+2
-8
@@ -291,14 +291,11 @@ namespace Vocaluxe.Screens
|
||||
|
||||
// Restart Round and reload song file header
|
||||
case Keys.R:
|
||||
if (keyEvent.Mod == EModifier.Ctrl)
|
||||
{
|
||||
if (_Pause)
|
||||
if (keyEvent.Mod == EModifier.Ctrl && _Pause)
|
||||
{
|
||||
_SetPause(false);
|
||||
_RestartRound();
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
// Restart Round and reload song file header
|
||||
@@ -312,9 +309,7 @@ namespace Vocaluxe.Screens
|
||||
|
||||
// Skip 30 seconds
|
||||
case Keys.Right:
|
||||
if (keyEvent.Mod == EModifier.Ctrl)
|
||||
{
|
||||
if (!_Pause)
|
||||
if (keyEvent.Mod == EModifier.Ctrl && !_Pause)
|
||||
{
|
||||
if (_TimerSongText.IsRunning)
|
||||
_TimerSongText.Stop();
|
||||
@@ -324,7 +319,6 @@ namespace Vocaluxe.Screens
|
||||
newTime = CSound.GetLength(_CurrentStream) - 1f;
|
||||
CSound.SetPosition(_CurrentStream, newTime);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user