diff options
| author | JosJuice <josjuice@gmail.com> | 2026-08-03 20:09:37 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2026-08-15 10:36:41 +0200 |
| commit | 2514407451d20d3184a30822e50b893a06b5377d (patch) | |
| tree | b16d9a4d4b499e199c349cc480a34336d187e867 /Source/Android/app/src/main/java | |
| parent | cd3ea814628d36939340ef67a6edb19e6b094279 (diff) | |
Android: Clean up setting rescanInProgress in GameFileCacheManager
We can avoid the workaround of setting rescanInProgress to true in
load() if we don't set it to false in rescan()'s early exit.
Diffstat (limited to 'Source/Android/app/src/main/java')
| -rw-r--r-- | Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/services/GameFileCacheManager.kt | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/services/GameFileCacheManager.kt b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/services/GameFileCacheManager.kt index 2ba2c246b3..1dad6107f3 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/services/GameFileCacheManager.kt +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/services/GameFileCacheManager.kt @@ -175,12 +175,6 @@ object GameFileCacheManager { } } - if (runRescanAfterLoad) { - // Without this, there will be a short blip where the loading indicator in the GUI disappears - // because neither loadInProgress nor rescanInProgress is true - rescanInProgress.postValue(true) - } - loadInProgress.postValue(false) if (runRescanAfterLoad) { @@ -214,9 +208,9 @@ object GameFileCacheManager { if (changed || additionalMetadataChanged) { gameFileCache!!.save() } - } - rescanInProgress.postValue(false) + rescanInProgress.postValue(false) + } } private fun updateGameFileArray() { |
