Skip to content

Commit

Permalink
fix(TrashListViewModel): Empty view logic for trash now works (#1363)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-coye authored Dec 20, 2024
2 parents 38cd83c + bdd963b commit 123fe3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kDrive/UI/Controller/Menu/Trash/TrashListViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ class TrashListViewModel: InMemoryFileListViewModel {
sortingChanged()
}

override func shouldShowEmptyView() -> Bool {
currentDirectory.children.isEmpty
}

private func restoreTrashedFiles(
_ restoredFiles: [ProxyFile],
firstFilename: String,
Expand Down

0 comments on commit 123fe3b

Please sign in to comment.