mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-21 13:55:58 +00:00
FIx warning
This commit is contained in:
1 parent
04b5b4228b
commit
f3f6616280
5 files changed
+16
-8
No files matched your search
Binary file not shown.
Binary file not shown.
@@ -825,8 +825,8 @@
|
|||||||
MTL_FAST_MATH = YES;
|
MTL_FAST_MATH = YES;
|
||||||
ONLY_ACTIVE_ARCH = YES;
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
SDKROOT = macosx;
|
SDKROOT = macosx;
|
||||||
SHARED_BUILD = 40;
|
SHARED_BUILD = 41;
|
||||||
SHARED_VERSION = 1.9.1;
|
SHARED_VERSION = 1.9.2;
|
||||||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
|
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
|
||||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||||
};
|
};
|
||||||
@@ -884,8 +884,8 @@
|
|||||||
MTL_ENABLE_DEBUG_INFO = NO;
|
MTL_ENABLE_DEBUG_INFO = NO;
|
||||||
MTL_FAST_MATH = YES;
|
MTL_FAST_MATH = YES;
|
||||||
SDKROOT = macosx;
|
SDKROOT = macosx;
|
||||||
SHARED_BUILD = 40;
|
SHARED_BUILD = 41;
|
||||||
SHARED_VERSION = 1.9.1;
|
SHARED_VERSION = 1.9.2;
|
||||||
SWIFT_COMPILATION_MODE = wholemodule;
|
SWIFT_COMPILATION_MODE = wholemodule;
|
||||||
SWIFT_OPTIMIZATION_LEVEL = "-O";
|
SWIFT_OPTIMIZATION_LEVEL = "-O";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -367,10 +367,18 @@ class ShareViewController: NSViewController, ShareExtensionDelegate {
|
|||||||
|
|
||||||
if !isRunning {
|
if !isRunning {
|
||||||
log("Launching main app")
|
log("Launching main app")
|
||||||
NSWorkspace.shared.launchApplication(withBundleIdentifier: bundleIdentifier,
|
if let url = NSWorkspace.shared.urlForApplication(withBundleIdentifier: bundleIdentifier) {
|
||||||
options: [.default],
|
let configuration = NSWorkspace.OpenConfiguration()
|
||||||
additionalEventParamDescriptor: nil,
|
NSWorkspace.shared.openApplication(at: url, configuration: configuration) { app, error in
|
||||||
launchIdentifier: nil)
|
if let error = error {
|
||||||
|
print("Failed to launch application: \(error)")
|
||||||
|
} else {
|
||||||
|
print("Application launched successfully")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
print("Could not find application with bundle identifier \(bundleIdentifier)")
|
||||||
|
}
|
||||||
|
|
||||||
DispatchQueue.main.asyncAfter(deadline: .now() + 1.0) {
|
DispatchQueue.main.asyncAfter(deadline: .now() + 1.0) {
|
||||||
NearbyConnectionManager.shared.startDeviceDiscovery()
|
NearbyConnectionManager.shared.startDeviceDiscovery()
|
||||||
|
|||||||
Reference in new issue
Block a user