mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-06 19:45:33 +00:00
FullscreenUI: Force key nav on first open
This commit is contained in:
parent
64fac4c9d4
commit
162150c509
@ -764,9 +764,14 @@ bool FullscreenUI::Initialize()
|
||||
LoadBackground();
|
||||
|
||||
if (open_main_window)
|
||||
{
|
||||
ReturnToMainWindow();
|
||||
ForceKeyNavEnabled();
|
||||
}
|
||||
else
|
||||
{
|
||||
UpdateRunIdleState();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -7701,7 +7706,10 @@ void FullscreenUI::DrawGameListWindow()
|
||||
if (NavButton(icons[i], static_cast<GameListView>(i) == s_state.game_list_view, true, ITEM_WIDTH,
|
||||
LAYOUT_MENU_BUTTON_HEIGHT_NO_SUMMARY))
|
||||
{
|
||||
s_state.game_list_view = static_cast<GameListView>(i);
|
||||
BeginTransition([]() {
|
||||
s_state.game_list_view =
|
||||
(s_state.game_list_view == GameListView::Grid) ? GameListView::List : GameListView::Grid;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user