mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-01-23 14:48:13 -05:00
🔨 Refactor: remove old update checker
This commit is contained in:
parent
e39cac9f3b
commit
2fab2cd79d
@ -50,16 +50,6 @@ export function createMenu () {
|
||||
}
|
||||
}
|
||||
},
|
||||
// @ts-ignore
|
||||
{
|
||||
label: T('OPEN_UPDATE_HELPER'),
|
||||
type: 'checkbox',
|
||||
checked: db.get('settings.showUpdateTip'),
|
||||
click () {
|
||||
const value = db.get('settings.showUpdateTip')
|
||||
db.set('settings.showUpdateTip', !value)
|
||||
}
|
||||
},
|
||||
{
|
||||
label: T('PRIVACY_AGREEMENT'),
|
||||
click () {
|
||||
@ -125,16 +115,6 @@ export function createContextMenu () {
|
||||
// @ts-ignore
|
||||
submenu
|
||||
},
|
||||
// @ts-ignore
|
||||
{
|
||||
label: T('OPEN_UPDATE_HELPER'),
|
||||
type: 'checkbox',
|
||||
checked: db.get('settings.showUpdateTip'),
|
||||
click () {
|
||||
const value = db.get('settings.showUpdateTip')
|
||||
db.set('settings.showUpdateTip', !value)
|
||||
}
|
||||
},
|
||||
{
|
||||
label: T('PRIVACY_AGREEMENT'),
|
||||
click () {
|
||||
@ -174,16 +154,6 @@ export function createContextMenu () {
|
||||
}
|
||||
}
|
||||
},
|
||||
// @ts-ignore
|
||||
{
|
||||
label: T('OPEN_UPDATE_HELPER'),
|
||||
type: 'checkbox',
|
||||
checked: db.get('settings.showUpdateTip'),
|
||||
click () {
|
||||
const value = db.get('settings.showUpdateTip')
|
||||
db.set('settings.showUpdateTip', !value)
|
||||
}
|
||||
},
|
||||
{
|
||||
label: T('ABOUT'),
|
||||
click () {
|
||||
|
@ -28,7 +28,6 @@ import {
|
||||
createTray
|
||||
} from 'apis/app/system'
|
||||
import server from '~/main/server/index'
|
||||
import updateChecker from '~/main/utils/updateChecker'
|
||||
import shortKeyHandler from 'apis/app/shortKey/shortKeyHandler'
|
||||
import { getUploadFiles } from '~/main/utils/handleArgv'
|
||||
import db, { GalleryDB } from '~/main/apis/core/datastore'
|
||||
@ -100,7 +99,7 @@ autoUpdater.on('update-downloaded', () => {
|
||||
})
|
||||
|
||||
autoUpdater.on('error', (err) => {
|
||||
dialog.showErrorBox('error', err.message)
|
||||
console.log(err)
|
||||
})
|
||||
|
||||
class LifeCycle {
|
||||
@ -152,7 +151,7 @@ class LifeCycle {
|
||||
}
|
||||
createTray()
|
||||
db.set('needReload', false)
|
||||
updateChecker()
|
||||
// updateChecker()
|
||||
autoUpdater.checkForUpdatesAndNotify()
|
||||
// 不需要阻塞
|
||||
process.nextTick(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user