diff options
Diffstat (limited to 'src/yuzu/main_window.cpp')
| -rw-r--r-- | src/yuzu/main_window.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/yuzu/main_window.cpp b/src/yuzu/main_window.cpp index 62e410e3c5..85980b5396 100644 --- a/src/yuzu/main_window.cpp +++ b/src/yuzu/main_window.cpp @@ -4275,9 +4275,15 @@ void MainWindow::OnMouseActivity() { void MainWindow::OnCheckFirmwareDecryption() { if (!ContentManager::AreKeysPresent()) { - QMessageBox::warning(this, tr("Derivation Components Missing"), - tr("Encryption keys are missing.")); + const auto res = QtCommon::Frontend::Warning( + tr("Derivation Components Missing"), + tr("Decryption keys are missing. Install them now?"), + QtCommon::Frontend::StandardButton::Yes | QtCommon::Frontend::StandardButton::No); + + if (res == QtCommon::Frontend::StandardButton::Yes) + OnInstallDecryptionKeys(); } + SetFirmwareVersion(); UpdateMenuState(); } |
