File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ class UserNotificationController: NSObject {
56
56
/// Show to the user a control center notification that describe the notification object received.
57
57
/// - Parameter notificationObject: the notification object that needs to be show.
58
58
func showBanner( _ notificationObject: NotificationObject ) {
59
- if let workflow = notificationObject. workflow, ( workflow == . resetBanners || workflow == . resetAlerts) {
59
+ if let workflow = notificationObject. workflow, workflow == . resetBanners || workflow == . resetAlerts {
60
60
UNUserNotificationCenter . current ( ) . removeAllPendingNotificationRequests ( )
61
61
UNUserNotificationCenter . current ( ) . removeAllDeliveredNotifications ( )
62
62
Utils . applicationExit ( withReason: . untrackedSuccess)
Original file line number Diff line number Diff line change @@ -23,10 +23,12 @@ struct Icon: View {
23
23
if let image = icon {
24
24
Image ( nsImage: image)
25
25
. resizable ( )
26
+ . aspectRatio ( contentMode: . fit)
26
27
. frame ( width: iconSize. width, height: iconSize. height)
27
28
} else {
28
29
Image ( " default_icon " )
29
30
. resizable ( )
31
+ . aspectRatio ( contentMode: . fit)
30
32
. frame ( width: iconSize. width, height: iconSize. height)
31
33
}
32
34
}
You can’t perform that action at this time.
0 commit comments