Merge pull request #14067 from VampireFlower/master

MainWindow: Change save state file filter to use *.s?? pattern
This commit is contained in:
JosJuice 2025-11-04 16:48:51 +01:00 committed by GitHub
commit 947ed4aaf6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1430,7 +1430,7 @@ void MainWindow::StateLoad()
QDir::currentPath() :
QString::fromStdString(Config::Get(Config::MAIN_CURRENT_STATE_PATH));
QString path = DolphinFileDialog::getOpenFileName(
this, tr("Select a File"), dialog_path, tr("All Save States (*.sav *.s##);; All Files (*)"));
this, tr("Select a File"), dialog_path, tr("All Save States (*.sav *.s??);; All Files (*)"));
Config::SetBase(Config::MAIN_CURRENT_STATE_PATH, QFileInfo(path).dir().path().toStdString());
if (!path.isEmpty())
State::LoadAs(m_system, path.toStdString());
@ -1442,7 +1442,7 @@ void MainWindow::StateSave()
QDir::currentPath() :
QString::fromStdString(Config::Get(Config::MAIN_CURRENT_STATE_PATH));
QString path = DolphinFileDialog::getSaveFileName(
this, tr("Select a File"), dialog_path, tr("All Save States (*.sav *.s##);; All Files (*)"));
this, tr("Select a File"), dialog_path, tr("All Save States (*.sav *.s??);; All Files (*)"));
Config::SetBase(Config::MAIN_CURRENT_STATE_PATH, QFileInfo(path).dir().path().toStdString());
if (!path.isEmpty())
State::SaveAs(m_system, path.toStdString());