mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-23 05:58:37 +00:00
refactor(macos): dedupe UI, pairing, and runtime helpers
This commit is contained in:
15
apps/macos/Sources/OpenClaw/SimpleFileWatcherOwner.swift
Normal file
15
apps/macos/Sources/OpenClaw/SimpleFileWatcherOwner.swift
Normal file
@@ -0,0 +1,15 @@
|
||||
import Foundation
|
||||
|
||||
protocol SimpleFileWatcherOwner: AnyObject {
|
||||
var watcher: SimpleFileWatcher { get }
|
||||
}
|
||||
|
||||
extension SimpleFileWatcherOwner {
|
||||
func start() {
|
||||
self.watcher.start()
|
||||
}
|
||||
|
||||
func stop() {
|
||||
self.watcher.stop()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user