mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-26 15:17:03 +02: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:
parent
770be31030
commit
283b94056d
2 changed files with 10 additions and 5 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
#include "qt_common/util/content.h"
|
#include "qt_common/util/content.h"
|
||||||
|
|
@ -267,9 +267,8 @@ void InstallKeys()
|
||||||
{},
|
{},
|
||||||
QtCommon::Frontend::Option::ReadOnly);
|
QtCommon::Frontend::Option::ReadOnly);
|
||||||
|
|
||||||
if (key_source_location.isEmpty()) {
|
if (key_source_location.isEmpty())
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
FirmwareManager::KeyInstallResult result
|
FirmwareManager::KeyInstallResult result
|
||||||
= FirmwareManager::InstallKeys(key_source_location.toStdString(), "keys");
|
= FirmwareManager::InstallKeys(key_source_location.toStdString(), "keys");
|
||||||
|
|
|
||||||
|
|
@ -4275,9 +4275,15 @@ void MainWindow::OnMouseActivity() {
|
||||||
|
|
||||||
void MainWindow::OnCheckFirmwareDecryption() {
|
void MainWindow::OnCheckFirmwareDecryption() {
|
||||||
if (!ContentManager::AreKeysPresent()) {
|
if (!ContentManager::AreKeysPresent()) {
|
||||||
QMessageBox::warning(this, tr("Derivation Components Missing"),
|
const auto res = QtCommon::Frontend::Warning(
|
||||||
tr("Encryption keys are missing."));
|
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();
|
SetFirmwareVersion();
|
||||||
UpdateMenuState();
|
UpdateMenuState();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue