I don't know if this PR should be against main or develop, feel free to change that. Also sorry that I didn't open an issue first; but the proposed fix is very straight-forward.
Latest opens applications with the synchronous method, which makes it wait for the opening. This can be a long time for big apps (or if online connectivity is spotty), during which Latest remains unresponsive.
To fix that, we can use the asynchronous method, which doesn't make the thread (and the app) wait. It is only available in macOS 10.15+, so we wrap it in an @available check.
The same way that in the previous code we ignored the return value, we can ignore the completionHandler here too.
Latest opens applications with the synchronous method, which makes it wait for the opening. This can be a long time for big apps (or if online connectivity is spotty), during which Latest remains unresponsive.
To fix that, we can use the asynchronous method, which doesn't make the thread (and the app) wait. It is only available in macOS 10.15+, so we wrap it in an
@available
check.The same way that in the previous code we ignored the return value, we can ignore the
completionHandler
here too.