From faf0cc14feed4e8aaafc664b4349401de4a1b3ca Mon Sep 17 00:00:00 2001 From: Kai Azim <68963405+MrKai77@users.noreply.github.com> Date: Mon, 15 Jan 2024 18:19:09 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20#171=20Auto-request=20notification?= =?UTF-8?q?=20permits?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Loop/AppDelegate.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Loop/AppDelegate.swift b/Loop/AppDelegate.swift index 3870090f..ee00af6d 100644 --- a/Loop/AppDelegate.swift +++ b/Loop/AppDelegate.swift @@ -29,9 +29,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele PermissionsManager.Accessibility.requestAccess() UNUserNotificationCenter.current().delegate = self - if !AppDelegate.areNotificationsEnabled() { - Defaults[.notificationWhenIconUnlocked] = false - } + AppDelegate.requestNotificationAuthorization() IconManager.refreshCurrentAppIcon() loopManager.startObservingKeys()