action: Rename Level to View

This commit is contained in:
Dorota Czaplejewicz
2019-12-17 12:23:10 +00:00
parent 647fde26f5
commit e77eccf7db
3 changed files with 11 additions and 11 deletions

View File

@ -698,10 +698,10 @@ impl Layout {
// if used like key.borrow() :(
let action = RefCell::borrow(key).action.clone();
let view_name = match action {
Action::SetLevel(name) => {
Action::SetView(name) => {
Some(name.clone())
},
Action::LockLevel { lock, unlock } => {
Action::LockView { lock, unlock } => {
let locked = {
let mut key = key.borrow_mut();
key.locked ^= true;
@ -900,7 +900,7 @@ mod test {
pressed: PressType::Released,
locked: false,
keycodes: Vec::new(),
action: Action::SetLevel("default".into()),
action: Action::SetView("default".into()),
}))
}