-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Feature: Added 'compress' attribute option to the properties window #16319
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 <[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? |
@d2dyno1 fyi |
Co-authored-by: 0x5BFA <[email protected]>
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
![image](https://private-user-images.githubusercontent.com/39923744/392159254-991f3897-2f39-40b8-8753-4fe47c4eca43.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4Mzg0MTUsIm5iZiI6MTczOTgzODExNSwicGF0aCI6Ii8zOTkyMzc0NC8zOTIxNTkyNTQtOTkxZjM4OTctMmYzOS00MGI4LTg3NTMtNGZlNDdjNGVjYTQzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE4VDAwMjE1NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUwMzRlOWZlYzA4N2M5MTQzZTEyOTlhMzQ0OGI4OWJjMmNhYjY0ODc2NzhhOWFjYzc4MWQ2OGFhNWJkMTNhZDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.lJTXg7qqh2pE6Lib6UWc2vATvQ70XGpVHQAXoNdg4Ac)
Todo
FILE_FILE_COMPRESSION
attribute