-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Implemented compression in properties #16319
base: main
Are you sure you want to change the base?
Conversation
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.
Summary
- Please use the constants win32metadata defines.
- Simplified some if-else's.
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.
Please revert changes in this file.
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.
No (see comment)
src/Files.App/ViewModels/Properties/Items/CombinedProperties.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: 0x5BFA <[email protected]>
Co-authored-by: 0x5BFA <[email protected]>
Co-authored-by: 0x5BFA <[email protected]>
Co-authored-by: 0x5BFA <[email protected]>
Co-authored-by: 0x5BFA <[email protected]>
@0x5bfa I implemented the changes you requested. Unfortunately, some of them didn't compile and CsWin32 didn't feel like SG-ing enums for me so I reverted to the old values. |
Can you try to add "COMPRESSION_FORMAT" and "FILE_ACCESS_RIGHTS" in NativeMethods.txt beforehand and use these enums? |
Summary
This PR continues on the work made in the ya/CompressedAttribute branch and fixes the broken logic to actually enable/disable compression for items
FYI @yaira2
Resolved / Related Issues
Todo
FILE_FILE_COMPRESSION
attribute