diff options
author | t895 <clombardo169@gmail.com> | 2024-01-26 15:29:51 +0100 |
---|---|---|
committer | t895 <clombardo169@gmail.com> | 2024-01-26 15:29:51 +0100 |
commit | e56b44dee6c58915f1abbe55bb159e09eeecd8f8 (patch) | |
tree | a852e2f4b4971810e7ef76926b8177fbee19aed7 /src | |
parent | Merge pull request #12796 from t895/controller-optimizations (diff) | |
download | yuzu-e56b44dee6c58915f1abbe55bb159e09eeecd8f8.tar yuzu-e56b44dee6c58915f1abbe55bb159e09eeecd8f8.tar.gz yuzu-e56b44dee6c58915f1abbe55bb159e09eeecd8f8.tar.bz2 yuzu-e56b44dee6c58915f1abbe55bb159e09eeecd8f8.tar.lz yuzu-e56b44dee6c58915f1abbe55bb159e09eeecd8f8.tar.xz yuzu-e56b44dee6c58915f1abbe55bb159e09eeecd8f8.tar.zst yuzu-e56b44dee6c58915f1abbe55bb159e09eeecd8f8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/HomeSettingsFragment.kt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/HomeSettingsFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/HomeSettingsFragment.kt index aefae2938..1f3578b22 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/HomeSettingsFragment.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/HomeSettingsFragment.kt @@ -153,7 +153,13 @@ class HomeSettingsFragment : Fragment() { cancellable = true ) { progressCallback, _ -> val result = NativeLibrary.verifyInstalledContents(progressCallback) - return@newInstance if (result.isEmpty()) { + return@newInstance if (progressCallback.invoke(100, 100)) { + // Invoke the progress callback to check if the process was cancelled + MessageDialogFragment.newInstance( + titleId = R.string.verify_no_result, + descriptionId = R.string.verify_no_result_description + ) + } else if (result.isEmpty()) { MessageDialogFragment.newInstance( titleId = R.string.verify_success, descriptionId = R.string.operation_completed_successfully |