screen: fixed a focusing bug in the settings (#565)

The game was previously focused after clicking the done button in the individual settings, which would cause the game to be focused while still in the main settings menu.
This commit is contained in:
terrarier2111 2021-08-01 03:56:06 +02:00 committed by GitHub
parent a25a2382b0
commit 44fd1f933c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -308,7 +308,6 @@ impl super::Screen for VideoSettingsMenu {
done_button.add_text(txt);
done_button.add_click_func(|_, game| {
game.screen_sys.pop_screen();
game.focused = true;
true
});
}
@ -394,7 +393,6 @@ impl super::Screen for AudioSettingsMenu {
done_button.add_text(txt);
done_button.add_click_func(|_, game| {
game.screen_sys.pop_screen();
game.focused = true;
true
});
}