From: Claudio Cambra Date: Tue, 13 Dec 2022 12:40:57 +0000 (+0100) Subject: Replace now deprecated FSEventStreamScheduleWithRunLoop with FSEventStreamSetDispatch... X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~11^2~43^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=784327f48976b97434d8c1a340ce926ca95e6c23;p=nextcloud-desktop.git Replace now deprecated FSEventStreamScheduleWithRunLoop with FSEventStreamSetDispatchQueue Signed-off-by: Claudio Cambra --- diff --git a/src/gui/folderwatcher_mac.cpp b/src/gui/folderwatcher_mac.cpp index 988d20377..fcce031cd 100644 --- a/src/gui/folderwatcher_mac.cpp +++ b/src/gui/folderwatcher_mac.cpp @@ -101,7 +101,7 @@ void FolderWatcherPrivate::startWatching() CFRelease(pathsToWatch); CFRelease(folderCF); - FSEventStreamScheduleWithRunLoop(_stream, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode); + FSEventStreamSetDispatchQueue(_stream, dispatch_get_main_queue()); FSEventStreamStart(_stream); }