Skip to content

Commit

Permalink
fixed items not cleared after re-analyze
Browse files Browse the repository at this point in the history
  • Loading branch information
waylybaye committed Jan 14, 2021
1 parent 2e69fe9 commit 0f686be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Utils/DataStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,9 @@ class AppData: ObservableObject {
analysis.totalSize = 0
analysis.itemsCount = subDirectories.count
analysis.analyzedCount = 0

analysis.items = []
analysis.groupedItems = []

DispatchQueue.global(qos: .userInitiated).async {
for subDirectory in subDirectories{
guard let totalSize = try? fm.getDirectorySize(subDirectory) else {
Expand Down

0 comments on commit 0f686be

Please sign in to comment.