rename AppSection -> AppFocus

This commit is contained in:
🪞👃🪞 2024-07-12 19:11:47 +03:00
parent 94738d3e89
commit 58cd51dfbf
7 changed files with 19 additions and 18 deletions

View file

@ -1,4 +1,4 @@
use crate::{core::*, handle, App, AppSection};
use crate::{core::*, handle, App, AppFocus};
pubmod!{ arranger chain focus mixer plugin sampler sequencer transport }
@ -26,13 +26,13 @@ handle!{
fn handle_focused (state: &mut App, e: &AppEvent) -> Usually<bool> {
match state.section {
AppSection::Transport =>
AppFocus::Transport =>
handle_keymap(state, e, crate::control::transport::KEYMAP_TRANSPORT),
AppSection::Arranger =>
AppFocus::Arranger =>
handle_keymap(state, e, crate::control::arranger::KEYMAP_ARRANGER),
AppSection::Sequencer =>
AppFocus::Sequencer =>
handle_keymap(state, e, crate::control::sequencer::KEYMAP_SEQUENCER),
AppSection::Chain => Ok(if state.entered {
AppFocus::Chain => Ok(if state.entered {
handle_device(state, e)? ||
handle_keymap(state, e, crate::control::chain::KEYMAP_CHAIN)?
} else {