4
0
mirror of https://github.com/AltarikMC/Launcher synced 2024-11-22 06:19:50 +01:00

Should fix signal not received by window

This commit is contained in:
Quentin Legot 2022-10-14 11:21:34 +02:00
parent d13bee0dd1
commit 2c8bf8faf2

View File

@ -42,7 +42,6 @@ class Updater {
const feed = `${server}/${pkg.repository}/${process.platform}-${process.arch}/${this.app.getVersion()}` const feed = `${server}/${pkg.repository}/${process.platform}-${process.arch}/${this.app.getVersion()}`
if(process.platform != 'linux') { if(process.platform != 'linux') {
this.autoUpdater.setFeedURL(feed) this.autoUpdater.setFeedURL(feed)
this.autoUpdater.checkForUpdates()
this.autoUpdater.on('error', message => { this.autoUpdater.on('error', message => {
this.displayError(win, showNotification, message) this.displayError(win, showNotification, message)
}) })
@ -55,6 +54,7 @@ class Updater {
this.logger.info("update not available") this.logger.info("update not available")
win.loadFile('src/client/login.html') win.loadFile('src/client/login.html')
}) })
this.autoUpdater.checkForUpdates()
} else { } else {
this.searchUpdateLinux(win, showNotification) this.searchUpdateLinux(win, showNotification)
} }