mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 14:36:01 +03:00
Tell delegate when fetch ongoing in share table view data source
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
e113a09ecf
commit
26d635b6fa
1 changed files with 3 additions and 0 deletions
|
@ -107,6 +107,9 @@ class ShareTableViewDataSource: NSObject, NSTableViewDataSource, NSTableViewDele
|
||||||
private func fetch(
|
private func fetch(
|
||||||
itemIdentifier: NSFileProviderItemIdentifier, itemRelativePath: String
|
itemIdentifier: NSFileProviderItemIdentifier, itemRelativePath: String
|
||||||
) async -> [NKShare] {
|
) async -> [NKShare] {
|
||||||
|
Task { @MainActor in uiDelegate?.fetchStarted() }
|
||||||
|
defer { Task { @MainActor in uiDelegate?.fetchFinished() } }
|
||||||
|
|
||||||
let rawIdentifier = itemIdentifier.rawValue
|
let rawIdentifier = itemIdentifier.rawValue
|
||||||
Logger.sharesDataSource.info("Fetching shares for item \(rawIdentifier, privacy: .public)")
|
Logger.sharesDataSource.info("Fetching shares for item \(rawIdentifier, privacy: .public)")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue