Skip to content

Disabled "Collapse" button in "Flat" view#1855

Merged
real-yfprojects merged 3 commits intoborgbase:masterfrom
AdwaitSalankar:bCollapse
Apr 1, 2024
Merged

Disabled "Collapse" button in "Flat" view#1855
real-yfprojects merged 3 commits intoborgbase:masterfrom
AdwaitSalankar:bCollapse

Conversation

@AdwaitSalankar
Copy link
Contributor

Description

Used setEnabled to disable bCollapseAll in flat mode and enabled it in the other modes.

Related Issue

Fixes #1784

How Has This Been Tested?

Wrote tests for the behaviour in test_extract.py and test_diff.py

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have read the CONTRIBUTING guide.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

I provide my contribution under the terms of the license of this repository and I affirm the Developer Certificate of Origin.

@AdwaitSalankar
Copy link
Contributor Author

@real-yfprojects Can you review this PR?

@real-yfprojects real-yfprojects requested a review from m3nu December 8, 2023 15:56
@real-yfprojects real-yfprojects merged commit bde5518 into borgbase:master Apr 1, 2024
@real-yfprojects
Copy link
Collaborator

Sorry for the delay @AdwaitSalankar. Glad this fix is merged now!

shivansh02 pushed a commit to TheLazron/vorta that referenced this pull request Jun 7, 2024
Our `DiffResultDialog` and `ExtractDialog` show a context menu for items of the list/tree view. The collapse action in this menu only makes sense for the tree mode of the view. This commit therefore enables the option only for this view mode.

* src/vorta/views/extract_dialog.py
* src/vorta/views/diff_result.py

* tests/unit/test_diff.py : Add tests for the new behaviour.
* tests/unit/test_extract.py
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.

FR: Disable "Collapse" button in "Flat" view

2 participants