diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-09-12 04:36:03 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-09-12 06:31:32 +0200 |
commit | 188cf1aed2f3179ef656aba5845af1f7c0fb7bd9 (patch) | |
tree | 85a426a19d9cef142a6d73f7906d41d44e167a81 /src | |
parent | Merge pull request #6846 from ameerj/nvdec-gpu-decode (diff) | |
download | yuzu-188cf1aed2f3179ef656aba5845af1f7c0fb7bd9.tar yuzu-188cf1aed2f3179ef656aba5845af1f7c0fb7bd9.tar.gz yuzu-188cf1aed2f3179ef656aba5845af1f7c0fb7bd9.tar.bz2 yuzu-188cf1aed2f3179ef656aba5845af1f7c0fb7bd9.tar.lz yuzu-188cf1aed2f3179ef656aba5845af1f7c0fb7bd9.tar.xz yuzu-188cf1aed2f3179ef656aba5845af1f7c0fb7bd9.tar.zst yuzu-188cf1aed2f3179ef656aba5845af1f7c0fb7bd9.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/yuzu/main.cpp | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index e36774cc6..77d53e7bc 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -3174,12 +3174,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; } @@ -3261,14 +3260,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; } |