mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 18:28:39 +00:00
refactor(macos): dedupe UI, pairing, and runtime helpers
This commit is contained in:
12
apps/macos/Sources/OpenClaw/SystemSettingsURLSupport.swift
Normal file
12
apps/macos/Sources/OpenClaw/SystemSettingsURLSupport.swift
Normal file
@@ -0,0 +1,12 @@
|
||||
import AppKit
|
||||
import Foundation
|
||||
|
||||
enum SystemSettingsURLSupport {
|
||||
static func openFirst(_ candidates: [String]) {
|
||||
for candidate in candidates {
|
||||
if let url = URL(string: candidate), NSWorkspace.shared.open(url) {
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user