app: stop the review soundtrack when an export opens the clip view
Finishing an export jumped straight to the clip view without leaving the review screen, so its soundtrack channels kept playing under the clip. The 1, 2 and 3 shortcuts had the same gap: they switched screens while the soundtrack played on.
This commit is contained in:
1 parent
918e653a0a
commit
a85f91e07d
2 files changed
+11
No files matched your search
@@ -969,18 +969,27 @@ pub fn on_key(app: &mut App, event: &KeyEvent, _tx: &mut Tx) -> bool {
|
||||
let command = event.mods.ctrl || event.mods.cmd;
|
||||
match (&event.key, command) {
|
||||
(Key::Text(t), false) if t == "1" => {
|
||||
if app.screen == Screen::Review {
|
||||
screens::review::leave(app);
|
||||
}
|
||||
app.menu_open = None;
|
||||
app.clips_menu_open = None;
|
||||
app.screen = Screen::History;
|
||||
true
|
||||
}
|
||||
(Key::Text(t), false) if t == "2" => {
|
||||
if app.screen == Screen::Review {
|
||||
screens::review::leave(app);
|
||||
}
|
||||
app.menu_open = None;
|
||||
app.clips_menu_open = None;
|
||||
app.screen = Screen::Settings;
|
||||
true
|
||||
}
|
||||
(Key::Text(t), false) if t == "3" => {
|
||||
if app.screen == Screen::Review {
|
||||
screens::review::leave(app);
|
||||
}
|
||||
app.menu_open = None;
|
||||
app.clips_menu_open = None;
|
||||
app.screen = Screen::Clips;
|
||||
|
||||
Reference in new issue
Block a user