forge
Explore
Log in

Don't you dare go Hollow

A drop respects every modal card and a loaded project clears clip-card state

Browse files at this commit

99e4ba3a728791fd2f85be8e5159395132d85735Ahmet Kaan GümüşParent: 752a567
  • fix
    • a drop respects every modal card and a loaded project clears clip-card state
Show full message
🐛 fix(ui): a drop respects every modal card and a loaded project clears clip-card state
crates/app/src/main.rsmodified+5 -2
@@ -1071,8 +1071,11 @@ impl Player {
1071 self.selected = None;1071 self.selected = None;
1072 // A menu can be up while a project is dropped on the window --1072 // A menu can be up while a project is dropped on the window --
1073 // the scrim swallows clicks, never a drop -- and its index1073 // the scrim swallows clicks, never a drop -- and its index
1074- // would name some other timeline's clip.1074+ // would name some other timeline's clip. The two clip cards
1075+ // hold a (lane, idx) of the old timeline for the same reason.
1075 self.context_menu = None;1076 self.context_menu = None;
1077+ self.eq_open = None;
1078+ self.color_open = None;
1076 // A different set of sources: the row that was picked is not1079 // A different set of sources: the row that was picked is not
1077 // the file that index names any more.1080 // the file that index names any more.
1078 self.selected_asset = None;1081 self.selected_asset = None;
@@ -1575,7 +1578,7 @@ impl Render for Player {
1575 // sibling it can stop. The export card is over the timeline for1578 // sibling it can stop. The export card is over the timeline for
1576 // the same reason: importing under it would change the very1579 // the same reason: importing under it would change the very
1577 // edit list the card is about to write out.1580 // edit list the card is about to write out.
1578- if this.keys_open || this.export_open || this.eq_open.is_some() {1581+ if this.modal() {
1579 return;1582 return;
1580 }1583 }
1581 for path in paths.paths() {1584 for path in paths.paths() {