-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add New/Preview Entry Attachments dialog and functionality #11637
base: develop
Are you sure you want to change the base?
Add New/Preview Entry Attachments dialog and functionality #11637
Conversation
eae01f6
to
df95ad6
Compare
Can we pair this with an attachment preview option? Same dialog just in reverse. Can also add an image control on there in case contents are not text. |
47d1bb0
to
abf2159
Compare
@droidmonkey Added text and image preview button. |
Love it! |
Supported types: - text - image Fixes keepassxreboot#11506
abf2159
to
e00aec9
Compare
Maybe we should remove the "Preview" button and open supported formats by default in the preview window? And for unsupported formats, add a warning that the file will be decrypted and opened in other software. For an example you can see how it is implemented in classic keepass2. There is also a bug with the preview window style, you can even see it on the screenshots above. If you open it from the entry, everything is fine, if you open it from the "preview panel", it doesn't follow the style. |
I will fix this issue with the style. It's strange, because the same window is shown |
If we replace the "Open" button, then we should be able to edit the file, but I don't understand how to edit non-text files (PDF, images, ...). I want to support preview PDF, because some services save recovery codes in this format. |
@xboxones1 I fixed styles. I'll check the keepass2 to understand its behavior. @droidmonkey What do you think about this? |
Refactor EntryAttachmentsWidget and PreviewEntryAttachmentsDialog to remove unnecessary parent references Fixes keepassxreboot#11506
1c1483a
to
3f91ffe
Compare
It works great, although for some reason wouldn't let me preview keeagent.settings which is XML (I think, maybe its Base64). I think we can make a couple more enhancements. See above for button adds. We can likely get rid of "Rename" by allowing for direct rename within the list widget. We should create a little grouping in the button list as well: |
Added support for xml, json, yaml, soap, protobuf. Next time I'll start refactoring the UI |
Screenshots
Testing strategy
Type of change
Fixes #11506