mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-11 09:14:06 +01:00
Fix deprecation warning.
This commit is contained in:
parent
5506187d51
commit
8cf388e55c
@ -128,8 +128,11 @@ public class RSAppMovementMonitor: NSObject {
|
||||
func relaunchFromURL(_ appURL: URL) {
|
||||
// Relaunching is best achieved by requesting that the system launch the app
|
||||
// at the given URL with the "new instance" option to prevent it simply reactivating us.
|
||||
let _ = try? NSWorkspace.shared.launchApplication(at: appURL, options: .newInstance, configuration: [:])
|
||||
NSApp.terminate(self)
|
||||
let configuration = NSWorkspace.OpenConfiguration()
|
||||
configuration.createsNewApplicationInstance = true
|
||||
NSWorkspace.shared.openApplication(at: appURL, configuration: configuration) { _,_ in
|
||||
NSApp.terminate(self)
|
||||
}
|
||||
}
|
||||
|
||||
func defaultHandler() {
|
||||
|
Loading…
Reference in New Issue
Block a user