Skip to content

Add Rizin preference for project compression#3601

Open
WhiteBai1 wants to merge 1 commit intorizinorg:devfrom
WhiteBai1:feature/project-save-compression
Open

Add Rizin preference for project compression#3601
WhiteBai1 wants to merge 1 commit intorizinorg:devfrom
WhiteBai1:feature/project-save-compression

Conversation

@WhiteBai1
Copy link
Copy Markdown

Your checklist for this pull request

  • I've read the guidelines for contributing to this repository
  • I made sure to follow the project's coding style
  • I've updated the documentation with the relevant information (if needed)
  • I've used AI tools to generate fully or partially these code changes and I'm sure the changes are not copyrighted by somebody else.

Detailed description

This PR adds a new Rizin preferences page and exposes the prj.compress
option through a checkbox:

  • Compress project when saving (prj.compress)

Following the original issue discussion, this PR adds a dedicated Rizin
preferences category for this option and uses the Rizin pineapple icon.

Changes included in this PR:

  • add a new RizinOptionsWidget
  • add a new Rizin category to Preferences
  • expose prj.compress as a checkbox
  • initialize the checkbox from the current prj.compress value
  • update prj.compress when the checkbox is toggled
  • register the new files in CMake and Qt resources

AI usage disclosure

I used AI tools only in a limited supporting role for code reading, Qt/C++
explanations, and understanding the existing Preferences implementation
pattern.

The actual implementation, code edits, debugging, build/test work, and manual
verification were performed by me. I verified that the code builds and works
locally.

Test plan (required)

Manual testing performed:

  1. Build Cutter successfully.
  2. Launch Cutter and open /bin/ls.
  3. Open Edit -> Preferences -> Rizin.
  4. Confirm the checkbox Compress project when saving (prj.compress) is shown.
  5. Verify the checkbox reflects the current prj.compress value.
  6. Toggle it off and on again, reopening Preferences each time to confirm the state persists.

Before / After

  • Before: no dedicated Rizin preferences category and no UI option for prj.compress.
  • After: a new Rizin preferences category with a checkbox for prj.compress.
Screenshot 2026-04-08 221135

Closing issues

Closes #2745

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Option to save project in compressed format

1 participant