From 36a93851f7acea6e8d902a1276e8bd9a21a18069 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Wed, 12 May 2021 21:53:51 +0530 Subject: [Franz catchup] Use a newer maintained module to trigger and capture permissions on macos. --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/index.js') diff --git a/src/index.js b/src/index.js index 2586ab401..d251af958 100644 --- a/src/index.js +++ b/src/index.js @@ -10,6 +10,7 @@ import fs from 'fs-extra'; import path from 'path'; import windowStateKeeper from 'electron-window-state'; import { enforceMacOSAppLocation } from 'electron-util'; +import ms from 'ms'; // TODO: This seems to be duplicated between here and 'config.js' // Set app directory before loading user modules @@ -328,7 +329,7 @@ const createWindow = () => { }); if (isMac) { - askFormacOSPermissions(); + setTimeout(() => askFormacOSPermissions(mainWindow), ms('30s')); } mainWindow.on('show', () => { -- cgit v1.2.3-54-g00ecf