We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df162d0 commit 6657b53Copy full SHA for 6657b53
lib/data/file_manager/file_manager.dart
@@ -667,14 +667,8 @@ class FileManager {
667
static Future<List<String>> getRecentlyAccessed() async {
668
if (!stows.recentFiles.loaded) await stows.recentFiles.waitUntilRead();
669
// Delete entries for files that have been deleted outside of Saber
670
- final List<String> toRemove = [];
671
- for (final file in stows.recentFiles.value) {
672
- if (!doesFileExist(file)) {
673
- toRemove.add(file);
674
- }
675
676
- for (final file in toRemove) {
677
- _removeReferences(file);
+ for (final file in stows.recentFiles.value.toList()) {
+ if (!doesFileExist(file)) _removeReferences(file);
678
}
679
return stows.recentFiles.value
680
.map((String filePath) {
0 commit comments