mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-06-09 09:39:47 +08:00
✨ Feature: add privacy policy
This commit is contained in:
@@ -2,7 +2,6 @@ import {
|
||||
app,
|
||||
globalShortcut,
|
||||
protocol,
|
||||
dialog,
|
||||
Notification
|
||||
} from 'electron'
|
||||
import {
|
||||
@@ -31,6 +30,7 @@ import shortKeyHandler from 'apis/app/shortKey/shortKeyHandler'
|
||||
import { getUploadFiles } from '~/main/utils/handleArgv'
|
||||
import db from '#/datastore'
|
||||
import bus from '@core/bus'
|
||||
import { privacyManager } from '~/main/utils/privacyManager'
|
||||
|
||||
const isDevelopment = process.env.NODE_ENV !== 'production'
|
||||
class LifeCycle {
|
||||
@@ -54,6 +54,10 @@ class LifeCycle {
|
||||
console.error('Vue Devtools failed to install:', e.toString())
|
||||
}
|
||||
}
|
||||
const res = await privacyManager.init()
|
||||
if (!res) {
|
||||
return app.quit()
|
||||
}
|
||||
windowManager.create(IWindowList.TRAY_WINDOW)
|
||||
windowManager.create(IWindowList.SETTING_WINDOW)
|
||||
createTray()
|
||||
|
||||
Reference in New Issue
Block a user