spb/zyquo-router Public MIT
One local endpoint, every AI provider — a private OpenAI-compatible LLM gateway for your Mac (170 models, 12 providers).
Swift 95.7%
Python 2.3%
Shell 1.2%
Makefile 0.9%
1//2// SettingsOpener.swift3// Zyquo Router4//5// Author: Simon-Pierre Boucher6// Mail: contact@spboucher.ai7//8// Opens the Settings scene from anywhere. SwiftUI's openSettings environment9// action requires macOS 14; this selector-based helper works on macOS 13 too.10//1112import AppKit1314enum SettingsOpener {15 @MainActor16 static func open() {17 NSApplication.shared.activate(ignoringOtherApps: true)18 // macOS 13+ selector for the SwiftUI Settings scene.19 if NSApp.responds(to: Selector(("showSettingsWindow:"))) {20 NSApp.sendAction(Selector(("showSettingsWindow:")), to: nil, from: nil)21 } else {22 NSApp.sendAction(Selector(("showPreferencesWindow:")), to: nil, from: nil)23 }24 }25}26