Skip to content

Commit

Permalink
- update SDK and adapt to API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-schwarz committed Jun 13, 2024
1 parent c17c53c commit 8ec454b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ownCloud File Provider/FileProviderExtension.m
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ - (void)stopProvidingItemAtURL:(NSURL *)url
// Cancel download if the item is currently downloading
if (item.isDownloading)
{
if ((downloadProgress = [self.core progressForItem:(OCItem *)item matchingEventType:OCEventTypeDownload]) != nil)
if ((downloadProgress = [self.core progressForItemWithLocalID:((OCItem *)item).localID matchingEventType:OCEventTypeDownload]) != nil)
{
[downloadProgress makeObjectsPerformSelector:@selector(cancel)];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ extension OCItem: UniversalItemListCellContentProvider {
var progress : Progress?

if syncActivity.rawValue & (OCItemSyncActivity.downloading.rawValue | OCItemSyncActivity.uploading.rawValue) != 0, !hasMessageForItem {
progress = context?.core?.progress(for: self, matching: .none)?.first
progress = context?.core?.progressForItem(withLocalID: self.localID, matching: .none)?.first

if progress == nil {
progress = Progress.indeterminate()
Expand Down

0 comments on commit 8ec454b

Please sign in to comment.