diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-11-29 11:25:12 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-11-29 11:25:12 +0100 |
| commit | 082b61f32344872d4360ad4c71cf62c99de62ae8 (patch) | |
| tree | 7af9ade0ae9ecd822a49b1b023719ae36b203021 /Captura/CapturaApp.swift | |
| parent | 9431168da5eb1338d8c9fc8cc92e6245c539e73d (diff) | |
Add multimonitor support1.0.0rbdr-multimonitor
Diffstat (limited to 'Captura/CapturaApp.swift')
| -rw-r--r-- | Captura/CapturaApp.swift | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Captura/CapturaApp.swift b/Captura/CapturaApp.swift index 67709a5..00c5cc4 100644 --- a/Captura/CapturaApp.swift +++ b/Captura/CapturaApp.swift @@ -132,9 +132,14 @@ struct CapturaApp: App { func menuWillOpen(_ menu: NSMenu) { if captureState != .idle { - menu.cancelTracking() + menu.cancelTrackingWithoutAnimation() + if captureState == .selectingArea { + NotificationCenter.default.post(name: .startRecording, object: nil, userInfo: nil) + return + } if captureState == .recording { NotificationCenter.default.post(name: .stopRecording, object: nil, userInfo: nil) + return } } } |