Fix crash on reloading share table view data source

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-03-05 00:05:10 +08:00
parent 5702b163c8
commit a7de8edd16

View file

@ -28,7 +28,7 @@ class ShareTableViewDataSource: NSObject, NSTableViewDataSource, NSTableViewDele
private(set) var kit: NextcloudKit? private(set) var kit: NextcloudKit?
private var itemURL: URL? private var itemURL: URL?
private var shares: [NKShare] = [] { private var shares: [NKShare] = [] {
didSet { sharesTableView?.reloadData() } didSet { Task { @MainActor in sharesTableView?.reloadData() } }
} }
private var account: NextcloudAccount? { private var account: NextcloudAccount? {
didSet { didSet {