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:
parent
a25a2382b0
commit
44fd1f933c
|
@ -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
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue