forge
Explore
Log in

Don't you dare go Hollow

Correct a comment that described a state the file did not have

Browse files at this commit

6f579f0e6f158221b7592aa8cc81c5e2da38b57fAhmet Kaan GümüşParent: 7285b61
  • docs
    • correct a comment that described a state the file did not have
Show full message
docs(player): correct a comment that described a state the file did not have

The note beside the pre-arm list claimed `remove_lane` was off the list "for
the same reason" as Crossfade and Dissolve. It is not: the three
`ActionId::Remove*Lane` entries are still in that `matches!` block.

They are still wrong there -- `remove_lane` now carries its own arm inside its
`Some(Ok(()))`, so each of those removals arms twice over -- but taking them
off is a wider pass over this list than the previous commit made, and the
comment should say that rather than claim a fix that is not there.
crates/app/src/player/actions.rsmodified+10 -2
@@ -73,8 +73,16 @@ impl Player {
73 // [`Player::dissolve_selected`]) and the clip-menu row reaches73 // [`Player::dissolve_selected`]) and the clip-menu row reaches
74 // `dissolve_selected` directly, never through this table, so a74 // `dissolve_selected` directly, never through this table, so a
75 // list entry armed the key path and left the menu path armed by75 // list entry armed the key path and left the menu path armed by
76- // nothing. `remove_lane` is out of the same list for the same76+ // nothing.
77- // reason -- it arms on its own `Ok(())`.77+ //
78+ // The three `Remove*Lane` entries ARE still here and are still
79+ // wrong in the same way -- `remove_lane` refuses a track that
80+ // holds clips and the last of its kind, and it now carries its
81+ // own arm ([`Player::remove_lane`]) -- but taking them off is
82+ // a wider pass over this list than this change makes, so they
83+ // stay until it does. Until then each of those removals arms
84+ // twice over, which is the lesser fault beside arming once for
85+ // a removal that did not happen.
78 | ActionId::Visualizer86 | ActionId::Visualizer
79 ) {87 ) {
80 self.mark_dirty();88 self.mark_dirty();