Skip to content

Commit

Permalink
Qt: Fix re-showing Controller Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Oct 17, 2023
1 parent 54858df commit 9ad8528
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pcsx2-qt/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2299,7 +2299,7 @@ SettingsWindow* MainWindow::getSettingsWindow()
g_main_window->doSettings("Interface");
});
});
connect(m_settings_window->getGameListSettingsWidget(), &GameListSettingsWidget::preferEnglishGameListChanged, this, []{
connect(m_settings_window->getGameListSettingsWidget(), &GameListSettingsWidget::preferEnglishGameListChanged, this, [] {
g_main_window->m_game_list_widget->refreshGridCovers();
});
}
Expand Down Expand Up @@ -2338,7 +2338,10 @@ void MainWindow::doControllerSettings(ControllerSettingsWindow::Category categor
{
if (m_controller_settings_window)
{
m_controller_settings_window->raise();
if (m_controller_settings_window->isVisible())
m_controller_settings_window->raise();
else
m_controller_settings_window->show();
}
else
{
Expand Down
3 changes: 3 additions & 0 deletions pcsx2-qt/Settings/GameListSettingsWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ bool GameListSettingsWidget::event(QEvent* event)
case QEvent::Resize:
QtUtils::ResizeColumnsForTableView(m_ui.searchDirectoryList, {-1, 100});
break;

default:
break;
}

return res;
Expand Down

0 comments on commit 9ad8528

Please sign in to comment.