Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Sources/CursorProfiles/GatewayController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,10 @@ final class GatewayController: ObservableObject {
let content = UNMutableNotificationContent()
content.title = title
content.body = body
center.add(UNNotificationRequest(identifier: UUID().uuidString, content: content, trigger: nil))
// Fetch the shared centre here rather than capturing the
// non-Sendable one from outside the callback.
UNUserNotificationCenter.current()
.add(UNNotificationRequest(identifier: UUID().uuidString, content: content, trigger: nil))
}
}

Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ if [ "$INSTALL" = 1 ]; then
sleep 0.25
done
pkill -f "$APP_NAME.app/Contents/MacOS/" 2>/dev/null || true
echo "▸ Installing to $DEST…"
echo "▸ Installing to ${DEST}…"
rm -rf "$DEST"
ditto "$APP_DIR" "$DEST"
open "$DEST"
Expand Down
Loading