Skip to content

Commit

Permalink
foobar minifix
Browse files Browse the repository at this point in the history
fixed for when not playing music
  • Loading branch information
psyrax committed Aug 31, 2015
1 parent 159410b commit 99b0c46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SerialSender/ContextMenus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ private void dataCheck(object StateObj)
if ( process.ProcessName == "AIMP3")
{
curSong = process.MainWindowTitle;
} else if ( process.ProcessName == "foobar2000")
} else if ( process.ProcessName == "foobar2000" && (process.MainWindowTitle.IndexOf("[") > 0 ) )
{
curSong = process.MainWindowTitle.Substring(0, process.MainWindowTitle.IndexOf("[")-1);
}
Expand Down

0 comments on commit 99b0c46

Please sign in to comment.