QT: add the ability to load .backup save states in UI

This commit is contained in:
Mrlinkwii 2023-11-30 11:55:04 +00:00 committed by Connor McLaughlin
parent 0bdc4394aa
commit b69cfad8ef
1 changed files with 1 additions and 1 deletions

View File

@ -2577,7 +2577,7 @@ void MainWindow::populateLoadStateMenu(QMenu* menu, const QString& filename, con
QAction* action = menu->addAction(is_right_click_menu ? tr("Load State File...") : tr("Load From File..."));
connect(action, &QAction::triggered, [this, filename]() {
const QString path(QFileDialog::getOpenFileName(this, tr("Select Save State File"), QString(), tr("Save States (*.p2s)")));
const QString path(QFileDialog::getOpenFileName(this, tr("Select Save State File"), QString(), tr("Save States (*.p2s *.p2s.backup)")));
if (path.isEmpty())
return;