By order of cryptofyre

This commit is contained in:
Amaru8 2022-05-24 23:07:55 +02:00 committed by GitHub
parent 8aff7755d5
commit 79019f2fb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 9 additions and 192 deletions

View file

@ -4410,23 +4410,6 @@ const app = new Vue({
app.skipToNextItem()
});
},
checkForUpdate() {
ipcRenderer.send('check-for-update')
document.getElementById('settings.option.general.updateCider.check').innerHTML = 'Checking...'
notyf.success('Checking for update in background...')
ipcRenderer.on('update-response', (event, res) => {
if (res === "update-not-available") {
notyf.error(app.getLz(`settings.notyf.updateCider.${res}`))
} else if (res === "update-downloaded") {
notyf.success(app.getLz(`settings.notyf.updateCider.${res}`))
} else if (res === "update-error") {
notyf.error(app.getLz(`settings.notyf.updateCider.${res}`))
} else if (res === "update-timeout") {
notyf.error(app.getLz(`settings.notyf.updateCider.${res}`))
}
document.getElementById('settings.option.general.updateCider.check').innerHTML = app.getLz('term.check')
})
},
authCC() {
ipcRenderer.send('cc-auth')
},