mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-21 22:05:59 +00:00
Fix: Share Extension also started mDNS
This commit is contained in:
1 parent
a9bffd5cb1
commit
2f99aee5e5
2 files changed
+1
-1
No files matched your search
@@ -108,6 +108,7 @@ struct DeviceListView: View {
|
|||||||
ZStack {
|
ZStack {
|
||||||
if let attachments = NearbyConnectionManager.shared.attachments {
|
if let attachments = NearbyConnectionManager.shared.attachments {
|
||||||
LUIButton {
|
LUIButton {
|
||||||
|
lightVibration()
|
||||||
sendModel.urls = attachments.urls
|
sendModel.urls = attachments.urls
|
||||||
sendModel.textToSend = attachments.textToSend
|
sendModel.textToSend = attachments.textToSend
|
||||||
sendModel.selectDevice(device: device)
|
sendModel.selectDevice(device: device)
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ class SendModel: ObservableObject, OutboundAppDelegate {
|
|||||||
|
|
||||||
init() {
|
init() {
|
||||||
NearbyConnectionManager.shared.startDeviceDiscovery()
|
NearbyConnectionManager.shared.startDeviceDiscovery()
|
||||||
NearbyConnectionManager.shared.becomeVisible()
|
|
||||||
NearbyConnectionManager.shared.addShareExtensionDelegate(self)
|
NearbyConnectionManager.shared.addShareExtensionDelegate(self)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user