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
PICARD-1192: set QTextDocumentWriter format to plaintext, and allow any filename #840
Conversation
Replace #837 |
@zas . We can still go with filters, to hide other extension file from user. Also we can show message if the file has been created successfully. Something like "logs have been saved in ----- file ." |
About filters, if we decide the user can choose whatever extensions he wants (including none), there's no need of filters, that would mislead the user in thinking only those extensions can be used. Note that meaning of extensions is mostly a windows thing. Since this PR displays a message if something is wrong, there's no point to show a message in case of success (that would add one more action to close the message). |
picard/ui/logview.py
Outdated
@@ -271,7 +276,7 @@ def _clear_log_do(self): | |||
reply = QtWidgets.QMessageBox.question( | |||
self, | |||
_("Clear Log"), | |||
_("Are you sure you want to clear the log?"), | |||
("Are you sure you want to clear the log?"), |
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.
Why remove i18n?
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.
Why remove i18n?
Is "because i suck" an acceptable answer ? ;)
Fixed and rebased, thanks for spotting this typo.
…ny filename - plaintext format was set from filename, which doesn't work if the file isn't a .txt - filter prevents selecting other filename, one may want to save to picard.log - an error message will be displayed if something prevented the file to be written
Summary
Problem
Saving log file with anything but .txt extension doesn't work
Solution
Action
Test & review