summaryrefslogtreecommitdiffstats
path: root/src/yuzu/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/yuzu/main.cpp')
-rw-r--r--src/yuzu/main.cpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index e129707e9..f4e49001d 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -3175,12 +3175,11 @@ std::optional<u64> GMainWindow::SelectRomFSDumpTarget(const FileSys::ContentProv
}
bool GMainWindow::ConfirmClose() {
- if (emu_thread == nullptr || !UISettings::values.confirm_before_closing)
+ if (emu_thread == nullptr || !UISettings::values.confirm_before_closing) {
return true;
-
- QMessageBox::StandardButton answer =
- QMessageBox::question(this, tr("yuzu"), tr("Are you sure you want to close yuzu?"),
- QMessageBox::Yes | QMessageBox::No, QMessageBox::No);
+ }
+ const auto text = tr("Are you sure you want to close yuzu?");
+ const auto answer = QMessageBox::question(this, tr("yuzu"), text);
return answer != QMessageBox::No;
}
@@ -3262,14 +3261,13 @@ bool GMainWindow::ConfirmChangeGame() {
}
bool GMainWindow::ConfirmForceLockedExit() {
- if (emu_thread == nullptr)
+ if (emu_thread == nullptr || !UISettings::values.confirm_before_closing) {
return true;
+ }
+ const auto text = tr("The currently running application has requested yuzu to not exit.\n\n"
+ "Would you like to bypass this and exit anyway?");
- const auto answer =
- QMessageBox::question(this, tr("yuzu"),
- tr("The currently running application has requested yuzu to not "
- "exit.\n\nWould you like to bypass this and exit anyway?"),
- QMessageBox::Yes | QMessageBox::No, QMessageBox::No);
+ const auto answer = QMessageBox::question(this, tr("yuzu"), text);
return answer != QMessageBox::No;
}