From bdd963b03104db001676e07068402bb5bbacb1fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Coye=20de=20Brune=CC=81lis?= Date: Fri, 20 Dec 2024 09:22:25 +0100 Subject: [PATCH] fix(TrashListViewModel): Empty view logic for trash now works --- kDrive/UI/Controller/Menu/Trash/TrashListViewModel.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kDrive/UI/Controller/Menu/Trash/TrashListViewModel.swift b/kDrive/UI/Controller/Menu/Trash/TrashListViewModel.swift index 219caec07..f836588e3 100644 --- a/kDrive/UI/Controller/Menu/Trash/TrashListViewModel.swift +++ b/kDrive/UI/Controller/Menu/Trash/TrashListViewModel.swift @@ -151,6 +151,10 @@ class TrashListViewModel: InMemoryFileListViewModel { sortingChanged() } + override func shouldShowEmptyView() -> Bool { + currentDirectory.children.isEmpty + } + private func restoreTrashedFiles( _ restoredFiles: [ProxyFile], firstFilename: String,