aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications/AudioPlayer.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-04-28 20:01:04 -0400
committerMichael <[email protected]>2017-04-28 20:01:04 -0400
commit712d38a2be53b415c2635b86e1f539faec0ace19 (patch)
treef600fea9f8f98a715216a98100f047846b693faa /ShiftOS.WinForms/Applications/AudioPlayer.cs
parente1b3ecc57d42a961c780114e4e582a875e8f3b96 (diff)
downloadshiftos_thereturn-712d38a2be53b415c2635b86e1f539faec0ace19.tar.gz
shiftos_thereturn-712d38a2be53b415c2635b86e1f539faec0ace19.tar.bz2
shiftos_thereturn-712d38a2be53b415c2635b86e1f539faec0ace19.zip
Final Beta 2.3 adjustments.
Diffstat (limited to 'ShiftOS.WinForms/Applications/AudioPlayer.cs')
-rw-r--r--ShiftOS.WinForms/Applications/AudioPlayer.cs15
1 files changed, 6 insertions, 9 deletions
diff --git a/ShiftOS.WinForms/Applications/AudioPlayer.cs b/ShiftOS.WinForms/Applications/AudioPlayer.cs
index 28e1c56..9940ddd 100644
--- a/ShiftOS.WinForms/Applications/AudioPlayer.cs
+++ b/ShiftOS.WinForms/Applications/AudioPlayer.cs
@@ -162,20 +162,17 @@ namespace ShiftOS.WinForms.Applications
}
if (o.PlaybackState == NAudio.Wave.PlaybackState.Stopped)
{
- if (lbtracks.SelectedIndex < lbtracks.Items.Count - 1)
+ this.Invoke(new Action(() =>
{
- this.Invoke(new Action(() =>
+ if (lbtracks.SelectedIndex < lbtracks.Items.Count - 1)
{
lbtracks.SelectedIndex++;
- }));
- }
- else if(loopToolStripMenuItem.Checked == true)
- {
- this.Invoke(new Action(() =>
+ }
+ else if (loopToolStripMenuItem.Checked == true)
{
lbtracks.SelectedIndex = 0;
- }));
- }
+ }
+ }));
}
}).Start();
}