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

Fixes #156 - Warn user if there is nothing to export. #159

Closed
wants to merge 1 commit into from
Closed

Fixes #156 - Warn user if there is nothing to export. #159

wants to merge 1 commit into from

Conversation

jimfoltz
Copy link
Contributor

No description provided.

UI.messagebox("There is nothing to export. Either the model or the selection is empty.")
return
end
path = select_export_file() if (path.nil? or path.empty?)
Copy link
Member

Choose a reason for hiding this comment

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

The brackets is probably not needed if you use || instead of or. Also, the style guide dictates to use || and && over or and and: https://github.com/styleguide/ruby

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