Skip to content

Commit

Permalink
Handle Quit event in the right branch
Browse files Browse the repository at this point in the history
  • Loading branch information
baskerville committed Dec 17, 2017
1 parent 6a59b9c commit b168e0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ pub fn run() -> Result<()> {
}).ok();
break;
},
Event::Select(EntryId::Reboot) => {
Event::Select(EntryId::Reboot) | Event::Select(EntryId::Quit) => {
break;
},
Event::Select(EntryId::StartNickel) | Event::Select(EntryId::Quit) => {
Event::Select(EntryId::StartNickel) => {
fs::remove_file("bootlock").map_err(|e| {
eprintln!("Couldn't remove the bootlock file: {}.", e);
}).ok();
Expand Down

0 comments on commit b168e0f

Please sign in to comment.