Removed the first recording button from SongEditor as it has no use#7899
Removed the first recording button from SongEditor as it has no use#7899steven-jaro wants to merge 30 commits intoLMMS:feature/recording-stage-onefrom
Conversation
|
I added the changes you asked me. |
|
I modified the logic of the set up for all the buttons so when adding the conditions, the code looks as compact and simplified as much as possible. The code order was: And now I changed it to: I made this change because otherwise I would have to add 9 "ifs" if I wanted to keep the previous order. So for adding just 3 "ifs" I reordered the logic of the code grouping by button instead of by set up stage. I also changed the order of the bools in the constructor and updated the change for the constructor of the PianoRoll and SongEditor |
|
Nice! That does look much cleaner |
|
The error is now fixed. |
szeli1
left a comment
There was a problem hiding this comment.
Please could you address my suggestions? Also I did not test this PR.
|
@szeli1 I will adress all your naming and commenting suggestions as soon as I can. |
|
@szeli1 I made the changes you requested but I kept the amount of documentation as I think it is useful. In the future, I will adress your suggestion for refactoring some bad variable names (in another PR). |
szeli1
left a comment
There was a problem hiding this comment.
I will approve this, but I did not test. I still don't like how many comments there are.
Don't bother with it, thanks for working on this issue. |
I would like to know the opinion from the other devs. If another devs says it is too much commenting, then I will remove them. |
szeli1
left a comment
There was a problem hiding this comment.
Making a lambda was a good Idea, I couldn't find any issues, so I will approve this
JohannesLorenz
left a comment
There was a problem hiding this comment.
I only have 3 style suggestions left, but overall this PR is good and can go into testing phase.
|
The requested whitespace changes by @bratpeki don't seem to appear in the current PR diff. Given that this PR has 3 approvals and has (I believe) been tested by bratpeki, would it be reasonable to merge it now? |
|
Saw this while looking at old PRs, and the approvals seem decent. Will wait for a day before merge, unless anyone objects.
I think so. If not, just tell me @bratpeki |
Let's wait until at least the spacing is fixed ;) |
|
Sure @JohannesLorenz |
|
|
||
| PatternEditorWindow::PatternEditorWindow(PatternStore* ps) : | ||
| Editor(false), | ||
| Editor(false, true, false), |
There was a problem hiding this comment.
BB Editor doesn't actually record anything, right?
I know it's out of the scope of this PR, I'm asking purely informatively.
There was a problem hiding this comment.
This is the only remaining issue I have with the PR.
Very easy to segfault this.
Investigating further.
| auto addButton = [this](QAction* action, QString objectName) { | ||
| m_toolBar->addAction(action); | ||
| m_toolBar->widgetForAction(action)->setObjectName(objectName); | ||
| auto createButton = [this]( |
Recently got write access so I'll resolve this now. @steven-jaro FYI, so if you make any more changes, be sure to pull first. |
|
Okay, took this on. |
Changes:
How to test?:
This PR just removes the button in the Song Editor. So one only has to make sure that the correct buttons are shown on each editor and that they work properly as intended.
All of these was decided because there is no really a use for a button that records without playing the song. So the only audio recording button left is the "RecordAccompany". Also this PR solves the first issue out of 4 in #7786.