mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-08-22 23:50:32 +00:00
[desktop] Allow installation of keys from the initial warning box (#3402)
whynot Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3402 Reviewed-by: Lizzie <lizzie@eden-emu.dev> Reviewed-by: MaranBr <maranbr@eden-emu.dev>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user