diff options
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 3 |
1 files changed, 2 insertions, 1 deletions
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'; | |||
10 | import path from 'path'; | 10 | import path from 'path'; |
11 | import windowStateKeeper from 'electron-window-state'; | 11 | import windowStateKeeper from 'electron-window-state'; |
12 | import { enforceMacOSAppLocation } from 'electron-util'; | 12 | import { enforceMacOSAppLocation } from 'electron-util'; |
13 | import ms from 'ms'; | ||
13 | 14 | ||
14 | // TODO: This seems to be duplicated between here and 'config.js' | 15 | // TODO: This seems to be duplicated between here and 'config.js' |
15 | // Set app directory before loading user modules | 16 | // Set app directory before loading user modules |
@@ -328,7 +329,7 @@ const createWindow = () => { | |||
328 | }); | 329 | }); |
329 | 330 | ||
330 | if (isMac) { | 331 | if (isMac) { |
331 | askFormacOSPermissions(); | 332 | setTimeout(() => askFormacOSPermissions(mainWindow), ms('30s')); |
332 | } | 333 | } |
333 | 334 | ||
334 | mainWindow.on('show', () => { | 335 | mainWindow.on('show', () => { |