diff options
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | pnpm-lock.yaml | 17 | ||||
-rw-r--r-- | src/electron/ipc-api/dnd.ts | 2 |
3 files changed, 14 insertions, 7 deletions
diff --git a/package.json b/package.json index 379d46725..c481cfe77 100644 --- a/package.json +++ b/package.json | |||
@@ -230,7 +230,7 @@ | |||
230 | "usocket": "_EXCLUDED_" | 230 | "usocket": "_EXCLUDED_" |
231 | }, | 231 | }, |
232 | "optionalDependencies": { | 232 | "optionalDependencies": { |
233 | "macos-notification-state": "github:ferdium/macos-notification-state#130bb2602795b65ae2dea74d823027b185eaf0ae", | 233 | "macos-notification-state": "github:ferdium/macos-notification-state#e0465373b0aed12ea4ce30522e82aaa8706cdf40", |
234 | "node-mac-permissions": "2.3.0" | 234 | "node-mac-permissions": "2.3.0" |
235 | }, | 235 | }, |
236 | "browserslist": [ | 236 | "browserslist": [ |
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 136330564..c44627c48 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml | |||
@@ -263,8 +263,8 @@ dependencies: | |||
263 | 263 | ||
264 | optionalDependencies: | 264 | optionalDependencies: |
265 | macos-notification-state: | 265 | macos-notification-state: |
266 | specifier: github:ferdium/macos-notification-state#130bb2602795b65ae2dea74d823027b185eaf0ae | 266 | specifier: github:ferdium/macos-notification-state#e0465373b0aed12ea4ce30522e82aaa8706cdf40 |
267 | version: github.com/ferdium/macos-notification-state/130bb2602795b65ae2dea74d823027b185eaf0ae | 267 | version: github.com/ferdium/macos-notification-state/e0465373b0aed12ea4ce30522e82aaa8706cdf40 |
268 | node-mac-permissions: | 268 | node-mac-permissions: |
269 | specifier: 2.3.0 | 269 | specifier: 2.3.0 |
270 | version: 2.3.0 | 270 | version: 2.3.0 |
@@ -10043,6 +10043,12 @@ packages: | |||
10043 | dev: true | 10043 | dev: true |
10044 | optional: true | 10044 | optional: true |
10045 | 10045 | ||
10046 | /node-addon-api@3.0.0: | ||
10047 | resolution: {integrity: sha512-sSHCgWfJ+Lui/u+0msF3oyCgvdkhxDbkCS6Q8uiJquzOimkJBvX6hl5aSSA7DR1XbMpdM8r7phjcF63sF4rkKg==} | ||
10048 | requiresBuild: true | ||
10049 | dev: false | ||
10050 | optional: true | ||
10051 | |||
10046 | /node-addon-api@3.2.1: | 10052 | /node-addon-api@3.2.1: |
10047 | resolution: {integrity: sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A==} | 10053 | resolution: {integrity: sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A==} |
10048 | requiresBuild: true | 10054 | requiresBuild: true |
@@ -13793,12 +13799,13 @@ packages: | |||
13793 | stack-trace: 0.0.10 | 13799 | stack-trace: 0.0.10 |
13794 | dev: false | 13800 | dev: false |
13795 | 13801 | ||
13796 | github.com/ferdium/macos-notification-state/130bb2602795b65ae2dea74d823027b185eaf0ae: | 13802 | github.com/ferdium/macos-notification-state/e0465373b0aed12ea4ce30522e82aaa8706cdf40: |
13797 | resolution: {tarball: https://codeload.github.com/ferdium/macos-notification-state/tar.gz/130bb2602795b65ae2dea74d823027b185eaf0ae} | 13803 | resolution: {tarball: https://codeload.github.com/ferdium/macos-notification-state/tar.gz/e0465373b0aed12ea4ce30522e82aaa8706cdf40} |
13798 | name: macos-notification-state | 13804 | name: macos-notification-state |
13799 | version: 2.0.2 | 13805 | version: 3.0.0 |
13800 | requiresBuild: true | 13806 | requiresBuild: true |
13801 | dependencies: | 13807 | dependencies: |
13802 | bindings: 1.5.0 | 13808 | bindings: 1.5.0 |
13809 | node-addon-api: 3.0.0 | ||
13803 | dev: false | 13810 | dev: false |
13804 | optional: true | 13811 | optional: true |
diff --git a/src/electron/ipc-api/dnd.ts b/src/electron/ipc-api/dnd.ts index 6e6e0920f..30ace7c84 100644 --- a/src/electron/ipc-api/dnd.ts +++ b/src/electron/ipc-api/dnd.ts | |||
@@ -17,7 +17,7 @@ export default async () => { | |||
17 | } | 17 | } |
18 | 18 | ||
19 | try { | 19 | try { |
20 | const isDND = getDoNotDisturb(); | 20 | const isDND = await getDoNotDisturb(); |
21 | debug('Fetching DND state, set to', isDND); | 21 | debug('Fetching DND state, set to', isDND); |
22 | return isDND; | 22 | return isDND; |
23 | } catch (error) { | 23 | } catch (error) { |