Working Clipboard

This commit is contained in:
Hariharan Mudaliar 2025-07-21 14:29:24 +05:30
commit 579c4d3ca6
3 changed files with 17 additions and 4 deletions

View file

@ -138,7 +138,7 @@ struct DynamicIslandHeader: View {
}
.foregroundColor(.gray)
.environmentObject(vm)
.onReceive(NotificationCenter.default.publisher(for: NSNotification.Name("ToggleClipboardPopover"))) { _ in
.onChange(of: coordinator.shouldToggleClipboardPopover) { _ in
// Only toggle if clipboard is enabled
if Defaults[.enableClipboardManager] {
showClipboardPopover.toggle()