mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-03-30 09:15:54 +00:00
Deps update , wait 300 seconds before quit and update
This commit is contained in:
parent
7a78ba24e6
commit
1ffae3e9aa
@ -125,7 +125,7 @@ if (!isLock) {
|
|||||||
autoUpdater.on('update-available', () => {
|
autoUpdater.on('update-available', () => {
|
||||||
const n = new Notification({
|
const n = new Notification({
|
||||||
title: 'Update Available!',
|
title: 'Update Available!',
|
||||||
body: 'It will be downloaded in the background and installed after download.'
|
body: 'It will be downloaded ⌛️ in the background and installed after download.'
|
||||||
})
|
})
|
||||||
n.show();
|
n.show();
|
||||||
})
|
})
|
||||||
@ -139,9 +139,12 @@ if (!isLock) {
|
|||||||
autoUpdater.on('update-downloaded', () => {
|
autoUpdater.on('update-downloaded', () => {
|
||||||
const n = new Notification({
|
const n = new Notification({
|
||||||
title: 'Update Downloaded!',
|
title: 'Update Downloaded!',
|
||||||
body: 'Restarting to Update'
|
body: 'Restarting in 30 secounds to Update. Please finish your tasks!'
|
||||||
})
|
})
|
||||||
|
setTimeout(() => {
|
||||||
n.show();
|
n.show();
|
||||||
|
}, 30000);
|
||||||
autoUpdater.quitAndInstall();
|
autoUpdater.quitAndInstall();
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"electron-updater": "4.3.9",
|
"electron-updater": "4.3.9",
|
||||||
"electron-log": "4.4.1"
|
"electron-log": "4.4.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"electron": "11.5.0",
|
"electron": "11.5.0",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user