Skip to content

An open-source cross-platform alternative to AirDrop

refactor: use the `showLocalSendFromMenuBar` convenience function (#1767)

Shlomo4055ebb1c33c
diff --git a/app/macos/Runner/AppDelegate.swift b/app/macos/Runner/AppDelegate.swift
index 88183946..d02a16ba 100644
--- a/app/macos/Runner/AppDelegate.swift
+++ b/app/macos/Runner/AppDelegate.swift
@@ -109,7 +109,7 @@ class AppDelegate: FlutterAppDelegate {
Defaults[.pendingFiles] = []
Defaults[.pendingStrings] = []
- channel?.invokeMethod("showLocalSendFromMenuBar", arguments: nil)
+ self.showLocalSendFromMenuBar()
}
// START: handle opened files