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
Show warning window if data loss occurs when saving to tiff #7655
Conversation
When a language was specified for updating translations and no translation file was found for that language then a new translation file was generated for en-US language. This commit changes this to generate translation file for the specified language.
1f85b13
to
450a933
Compare
450a933
to
534883a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple small comments, otherwise LGTM.
if ((vtksys::SystemTools::StringEndsWith(lowerCaseFileName, ".tiff") || | ||
vtksys::SystemTools::StringEndsWith(lowerCaseFileName, ".tif"))) | ||
{ | ||
// Display warning if saving VTK file with non-LPS axes (VTK cannot store axis directions) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment should refer to tiff not VTK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, I will fix it
Adds warning for TIFF file format saving. Prevents potential data loss. Made translatable all messages that may be relevant to users. see Slicer#7588 Co-authored-by: Andras Lasso <lasso@queensu.ca>
ce8d0e3
to
c33335c
Compare
@pieper please have a look and approve if it looks good. Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
This pull request supersedes #7614 by @aramSofthenge