Qt: Fix re-showing Controller Settings

This commit is contained in:
Stenzek 2023-10-17 13:19:19 +10:00 committed by Connor McLaughlin
parent 54858dffdb
commit 9ad85288a9
2 changed files with 8 additions and 2 deletions

View File

@ -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();
});
}
@ -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
{

View File

@ -103,6 +103,9 @@ bool GameListSettingsWidget::event(QEvent* event)
case QEvent::Resize:
QtUtils::ResizeColumnsForTableView(m_ui.searchDirectoryList, {-1, 100});
break;
default:
break;
}
return res;