Change QMessageBox::No to QMessageBox::Yes

This commit is contained in:
RocketRobz 2024-05-14 13:37:05 -06:00
parent 6b1dc49ea9
commit 72f53754b1

View file

@ -2412,14 +2412,12 @@ void GMainWindow::OnCaptureScreenshot() {
return;
}
if (!emu_thread->IsRunning()
&& (QMessageBox::question(this, tr("Game will unpause"),
tr("The game will be unpaused, and the next frame will be captured. Is this okay?"), QMessageBox::Yes | QMessageBox::No, QMessageBox::No) == QMessageBox::No)) {
return;
} else {
if (emu_thread->IsRunning()
|| (QMessageBox::question(this, tr("Game will unpause"),
tr("The game will be unpaused, and the next frame will be captured. Is this okay?"), QMessageBox::Yes | QMessageBox::No, QMessageBox::No) == QMessageBox::Yes)) {
if (emu_thread->IsRunning()) {
OnPauseGame();
}
std::string path = UISettings::values.screenshot_path.GetValue();
if (!FileUtil::IsDirectory(path)) {
if (!FileUtil::CreateFullPath(path)) {
@ -2442,6 +2440,7 @@ void GMainWindow::OnCaptureScreenshot() {
screenshot_window->CaptureScreenshot(UISettings::values.screenshot_resolution_factor.GetValue(),
QString::fromStdString(path));
OnStartGame();
}
}
void GMainWindow::OnDumpVideo() {