Skip to content
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

Add option to remove breaks via timeline context menu #28707

Merged
merged 5 commits into from
Jul 3, 2024

Conversation

bdach
Copy link
Collaborator

@bdach bdach commented Jul 2, 2024

Because people keep asking for it.

It's not very smartly implemented, meaning that you can remove it, but if you change any object and the automatic generator determines that a break should be where you just removed it, it'll add another one back. I can probably do something about that but maybe let's just start simple and see how many people complain?

@bdach bdach self-assigned this Jul 2, 2024
@frenzibyte frenzibyte self-requested a review July 3, 2024 04:07
Add(new TimelineBreak(breakPeriod));
Add(new TimelineBreak(breakPeriod)
{
OnDeleted = b => breaks.Remove(b),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this should be accompanied by a changeHandler.SaveState call for undo/redo/"do you want to save your changes" functionalities.

@peppy peppy self-requested a review July 3, 2024 05:09
peppy
peppy previously approved these changes Jul 3, 2024
@peppy peppy merged commit 824a00b into ppy:master Jul 3, 2024
13 of 17 checks passed
@bdach bdach deleted the remove-breaks branch July 3, 2024 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants