go back to main menu when logging out

Former-commit-id: 95956f916adb0afb47e489defa197f2b8e99b775
This commit is contained in:
Imbris 2019-04-20 11:24:28 -04:00
parent 83ed5200b0
commit 85dda5e505

View File

@ -67,7 +67,7 @@ impl PlayState for CharSelectionState {
global_state.singleplayer = None;
return PlayStateResult::Pop;
},
ui::Event::Play => return PlayStateResult::Push(
ui::Event::Play => return PlayStateResult::Switch(
Box::new(SessionState::new(&mut global_state.window, self.client.clone()))
),
}