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

Avoid reloading invalid files in a loop #614

Merged
merged 1 commit into from
Feb 1, 2021
Merged

Conversation

jpcima
Copy link
Collaborator

@jpcima jpcima commented Feb 1, 2021

This prevents incorrect or missing files from reloading in a loop.

Currently, when one creates a file without regions, loading will fail, and it is in "should reload" state until editing it into a valid file.

Note: In the update, in case a file can't load the first time, sfizz will not attempt to auto-reload this path.

An additional change of this PR: the parser gets cleared in the case where loading failed.

@jpcima jpcima merged commit 872bc69 into sfztools:develop Feb 1, 2021
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.

1 participant