[MM-58455] Add error handling when FocusStatus is not authorized on macOS (#3053)

* [MM-58455] Add error handling when FocusStatus is not authorized on macOS

* Do the permission check very early so that it's less likely for users to miss it

* Move permissions check to initialize
This commit is contained in:
Devin Binnie
2024-06-06 14:04:49 -04:00
committed by GitHub
parent 923df7c187
commit d11752e195
4 changed files with 47 additions and 7 deletions

View File

@@ -143,6 +143,7 @@ jest.mock('main/CriticalErrorHandler', () => ({
}));
jest.mock('main/notifications', () => ({
displayDownloadCompleted: jest.fn(),
getDoNotDisturb: jest.fn(),
}));
jest.mock('main/ParseArgs', () => jest.fn());
jest.mock('common/servers/serverManager', () => ({