Fix function call for recent files

This commit is contained in:
rainmakerv2 2024-12-07 19:07:01 +08:00
parent 5a98f38b2a
commit d19d4b9639

View File

@ -1006,7 +1006,7 @@ void MainWindow::AddRecentFiles(QString filePath) {
} }
Config::setRecentFiles(vec); Config::setRecentFiles(vec);
const auto config_dir = Common::FS::GetUserPath(Common::FS::PathType::UserDir); const auto config_dir = Common::FS::GetUserPath(Common::FS::PathType::UserDir);
Config::save(config_dir / "config.toml"); Config::saveMainWindow(config_dir / "config.toml");
CreateRecentGameActions(); // Refresh the QActions. CreateRecentGameActions(); // Refresh the QActions.
} }