mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Qt: Add Refresh button
This commit is contained in:
@ -442,6 +442,7 @@ void MainWindow::ConnectToolBar()
|
||||
addToolBar(m_tool_bar);
|
||||
|
||||
connect(m_tool_bar, &ToolBar::OpenPressed, this, &MainWindow::Open);
|
||||
connect(m_tool_bar, &ToolBar::RefreshPressed, this, &MainWindow::RefreshGameList);
|
||||
|
||||
connect(m_tool_bar, &ToolBar::PlayPressed, this, [this]() { Play(); });
|
||||
connect(m_tool_bar, &ToolBar::PausePressed, this, &MainWindow::Pause);
|
||||
@ -516,6 +517,14 @@ void MainWindow::ConnectStack()
|
||||
tabifyDockWidget(m_log_widget, m_jit_widget);
|
||||
}
|
||||
|
||||
void MainWindow::RefreshGameList()
|
||||
{
|
||||
Settings::Instance().ReloadTitleDB();
|
||||
|
||||
for (const auto& path : Settings::Instance().GetPaths())
|
||||
Settings::Instance().ReloadPath(path);
|
||||
}
|
||||
|
||||
QString MainWindow::PromptFileName()
|
||||
{
|
||||
return QFileDialog::getOpenFileName(
|
||||
|
Reference in New Issue
Block a user