Enabled the piano roll and automation editor buttons only when not empty#8285
Open
clemetayer wants to merge 1 commit intoLMMS:masterfrom
Open
Enabled the piano roll and automation editor buttons only when not empty#8285clemetayer wants to merge 1 commit intoLMMS:masterfrom
clemetayer wants to merge 1 commit intoLMMS:masterfrom
Conversation
…ns only when not empty
Member
|
#6295 created an empty clip on the first instrument if there were no clips already, but was unfortunately reverted. You might be interested in looking at that pr and its approaches, the follow-up issue and reverting pr, and other possible approaches to the basic problem of a button able to open up an empty box. |
Member
Author
|
The "No valid clip" window can still appear, especially in the same scenario as #8148 (I think this is the revert linked to #6295 you mentionned ?), but it will only appear if you previously had opened at least one clip and kept the window opened somewhere. However, I do agree that seeing these two buttons disabled by default might be confusing for newcomers. Maybe I should change the tooltip to make it clearer ? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR aims to resolve issue #1132 by enabling the piano roll and automation editor only if they have associated data.
Changes
Notes
currentClipChangedfrom AutomationEditorWindow was not enough to handle all cases. So I also had to integratecurrentClipChangedfrom AutomationEditor.Questions
getGUI()->automationEditor()->m_editoris a good idea. Is there a better way to do this?