Fix a few concurrency warnings.

This commit is contained in:
Brent Simmons
2024-05-03 11:57:20 -07:00
parent 6776862322
commit 81cede769a
5 changed files with 13 additions and 10 deletions

View File

@@ -13,7 +13,7 @@ import AppKitExtras
// Not undoable.
final class SendToMicroBlogCommand: SendToCommand {
@MainActor final class SendToMicroBlogCommand: SendToCommand {
let title = "Micro.blog"
let image: RSImage? = AppAssets.microblogIcon
@@ -30,7 +30,7 @@ final class SendToMicroBlogCommand: SendToCommand {
return true
}
@MainActor func sendObject(_ object: Any?, selectedText: String?) {
func sendObject(_ object: Any?, selectedText: String?) {
guard canSendObject(object, selectedText: selectedText) else {
return