-
Notifications
You must be signed in to change notification settings - Fork 41
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
Initial implementation of the undelete mechanism for fitting tabs. #2778
Conversation
Tested functionality and works as intended, the last FitPage deleted is recovered. Some remarks:
|
Given this is an intermediate quick fix, I'm guessing this should be included in 6.0.0 beta? |
Maybe I am not testing it properly but it seems to work fine before I start fitting (I can undo delete). However, as soon as I run the fit I cannot do that for any page. BTW, on MAC is Cmd + T, which we will need to document. |
Tested functionality (on Windows 10) and almost everything worked well, including the issue reported by @wpotrzebowski. I loaded several FitPages, made a fit and then deleted one and I could restore it using Ctr+T. |
Good observation, which led me to a tab object lifetime issue. This is now solved and the onion model restores just fine. |
Pinging for re-review, please |
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.
Worked fine in all my tests, including the onion model so I think this can be merged. I think this is a useful intermediate solution to the problem of deleting unintentionally a FitPage (while waiting for a full Undo button), so I agree with @butlerpd suggestion of including this also in release 6.0.0.
Good point Lucas. This has been sitting around for a while and somehow did not get pulled into the beta even though it was approved back in April? If we are going to do a beta 2 anyway I guess my vote would be to merge this into 6.0? That would be in the grey area of violating our rule of no new bug fixes (for prior bugs) but ...? I guess the issue is that it would have to be rebased? ...or cherry picking the 3 commits might be easier? What do others think/vote? |
I vote merge. But it is against |
…meter space to ensure the file is loaded properly
…n requirements.txt
…-tests 2976 auxsas has nondeterminstic tests
…t can lead to AttributeErrors
…functionality of the online calculator
…ng functools.partial.
…eds-a-help-button-documentation 2905 - Orientation Viewer Tool needs a Help Button & Documentation
…sc-since-506 2831 - fix arrows, stop crashing, fix and improve PDB reading
2981: Eliminate Errors on Density Panel Calculation
…orrect-for-the-porod-plot-1
Added new configuration system change, it's the most significant change I've made.
3126: Fix OpenCl and covariance issues
…sic fitting help (for now)
…ndow, but remove mention of documentation generation
Debye efficiency (macOS)
v6.0.0: Final release notes
Release 6.0.0: Show 404 message instead of regen
The artifacts have expired. Is there a way to rerun jobs with pushing something to the code? |
new version cherry picked to merge cleanly with main is here: #3140 |
I think we can close this PR now that the other is against main. @rozyczko? |
We definitely can - I just wanted to make sure we can get to it from the other PR. But we can link to closed PR of course. |
Description
User request addressed - it is easy (too easy) to delete a fitting tab. It would be good to be able to recover it somehow.
This PR is a cruft before the proposed Undo stack is implemented, allowing for more streamlined action of recovering UI errors.
Here, we just store the deleted tab and if needed, populate the perspective with it.
The key shortcut to restore the deleted tab is
Ctrl-T
, akin to the web browser standard.How Has This Been Tested?
Local testing on win10
Review Checklist (please remove items if they don't apply):