Skip to content

Commit

Permalink
Adopt generic Notificatoin interface on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelSchneid3r committed Aug 14, 2023
1 parent 5f39673 commit d9a2010
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/platform/Darwin/platform.mm
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,12 @@ static void requestNotificationPermissions()
NSUserNotification *notification;
};

albert::Notification::Notification(const QString &title, const QString &subTitle, const QString &text) : d(new NotificationPrivate)
albert::Notification::Notification(const QString &title, const QString &body) : d(new NotificationPrivate)
{
d->notification = [[NSUserNotification alloc] init];
d->notification.title = title.toNSString();
d->notification.subtitle = subTitle.toNSString();
d->notification.informativeText = text.toNSString();
// d->notification.subtitle = body.toNSString();
d->notification.informativeText = body.toNSString();
d->notification.hasActionButton = NO;
d->notification.soundName = NSUserNotificationDefaultSoundName;
[NSUserNotificationCenter.defaultUserNotificationCenter deliverNotification:d->notification];
Expand Down

0 comments on commit d9a2010

Please sign in to comment.