Qt: Fix game list not resizing after resize+shutdown game

This commit is contained in:
Connor McLaughlin 2022-07-24 22:52:04 +10:00 committed by refractionpcsx2
parent 758c347258
commit 4040f7afca
1 changed files with 4 additions and 0 deletions

View File

@ -1959,6 +1959,7 @@ void MainWindow::destroyDisplayWidget(bool show_game_list)
{ {
m_game_list_widget->setVisible(true); m_game_list_widget->setVisible(true);
setCentralWidget(m_game_list_widget); setCentralWidget(m_game_list_widget);
m_game_list_widget->resizeTableViewColumnsToFit();
} }
} }
else else
@ -1966,7 +1967,10 @@ void MainWindow::destroyDisplayWidget(bool show_game_list)
pxAssertRel(m_ui.mainContainer->indexOf(m_display_widget) == 1, "Display widget in stack"); pxAssertRel(m_ui.mainContainer->indexOf(m_display_widget) == 1, "Display widget in stack");
m_ui.mainContainer->removeWidget(m_display_widget); m_ui.mainContainer->removeWidget(m_display_widget);
if (show_game_list) if (show_game_list)
{
m_ui.mainContainer->setCurrentIndex(0); m_ui.mainContainer->setCurrentIndex(0);
m_game_list_widget->resizeTableViewColumnsToFit();
}
} }
} }