Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple file select on sound selection #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ioerrorle
Copy link

Plays random item from semicolon-divided list.
Doesn't break anything, just add new feature.

Comment on lines +171 to +179
int index = 0;
string[] locationsArray = locations.Split(';');
if (locationsArray.Length > 1)
{
index = rnd.Next(0, locations.Length);
}

string location = locationsArray[index];

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is kinda questionable, should make some kind of regex-parser for paths so they could contain semicolon symbol

@heilmods
Copy link

heilmods commented Jun 9, 2020

This is a definitely needed feature. Would be nice if the previous and current track couldn't be the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants