-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Feature: Added 'compress' attribute option to the properties window #16319
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
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.
src/Files.App/ViewModels/Properties/Items/CombinedProperties.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: 0x5BFA <62196528+0x5bfa@users.noreply.github.com>
Co-authored-by: 0x5BFA <62196528+0x5bfa@users.noreply.github.com>
Co-authored-by: 0x5BFA <62196528+0x5bfa@users.noreply.github.com>
Co-authored-by: 0x5BFA <62196528+0x5bfa@users.noreply.github.com>
Co-authored-by: 0x5BFA <62196528+0x5bfa@users.noreply.github.com>
|
@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? |
|
@d2dyno1 fyi |
Co-authored-by: 0x5BFA <62196528+0x5bfa@users.noreply.github.com>
|
I think we can move on with it @0x5bfa |
|
Looks great. |
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
Screenshots

Todo
FILE_FILE_COMPRESSIONattribute