Update src/yuzu/main.cpp

Co-authored-by: Tobias <thm.frey@gmail.com>
This commit is contained in:
Andrew Pilley 2024-02-19 15:08:32 +11:00 committed by GitHub
parent a2bedcf06c
commit 431fe9b3b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4331,7 +4331,7 @@ void GMainWindow::OnInstallDecryptionKeys() {
}
// There should be at least prod.keys.
if (source_key_files.size() < 1 || !prod_keys_found) {
if (source_key_files.empty() || !prod_keys_found) {
QMessageBox::warning(this, tr("Decryption Keys install failed"),
tr("prod.keys is a required decryption key file."));
return;