From ae7e35bfee3bd131ace4217a992c8b4f93068e4d Mon Sep 17 00:00:00 2001 From: Quentin Legot Date: Tue, 23 Jan 2024 12:51:19 +0100 Subject: [PATCH 1/3] Move showNotification before logging --- src/server/minecraft.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/server/minecraft.js b/src/server/minecraft.js index 746660d..3b73b37 100644 --- a/src/server/minecraft.js +++ b/src/server/minecraft.js @@ -64,16 +64,14 @@ export default class Minecraft { } }).catch(err => { event.sender.send('loginError') + this.showNotification('Erreur de connexion à Mojang', err, 'error') logger.error('[MS login] ' + lst(err)) - this.showNotification('Erreur de connexion à Mojang', lst(err), 'error') }) }).catch(err => { event.sender.send('loginError') - logger.error('[MS login]' + lst(err)) - this.showNotification('Une erreur de connexion à Xbox est survenue', lst(err), 'error') if (err !== 'error.gui.closed') { + this.showNotification('Une erreur de connexion à Xbox est survenue', err, 'error') logger.error('[MS login] ' + lst(err)) - this.showNotification('Une erreur de connexion à Xbox est survenue', lst(err), 'error') } }) } From 49a46f1a91aa04c5f889efeab9941218ed5e5fd7 Mon Sep 17 00:00:00 2001 From: Quentin Legot Date: Tue, 23 Jan 2024 12:52:17 +0100 Subject: [PATCH 2/3] Fix exception at install --- src/server/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/main.js b/src/server/main.js index ec989be..81346b9 100644 --- a/src/server/main.js +++ b/src/server/main.js @@ -63,7 +63,7 @@ ipcMain.on('checking-update', () => { function main () { if (electronStartup) { - install.handleSquirrelEvent(app) + install(app) app.quit() return } From 8d688512750bb16d9379d764fa32d5b2b5217659 Mon Sep 17 00:00:00 2001 From: Quentin Legot Date: Tue, 23 Jan 2024 12:52:39 +0100 Subject: [PATCH 3/3] Dump to 2.1.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f614774..508dd6f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "altarik-launcher", "author": "Altarik", - "version": "2.1.2", + "version": "2.1.3", "description": "Altarik Launcher", "main": "src/server/main.js", "type": "module",