From b028a800a7c3763fb0a128adae00cb3f4ebe7e7f Mon Sep 17 00:00:00 2001 From: TheFlash787 Date: Wed, 12 Aug 2020 12:47:26 +0100 Subject: [PATCH] Display additional text in error overlay and added a download button taking you to releases --- app/assets/js/scripts/uibinder.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/assets/js/scripts/uibinder.js b/app/assets/js/scripts/uibinder.js index 0b080d1..3ea21c9 100644 --- a/app/assets/js/scripts/uibinder.js +++ b/app/assets/js/scripts/uibinder.js @@ -110,14 +110,16 @@ function showFatalStartupError(){ document.getElementById('overlayContainer').style.background = 'none' setOverlayContent( 'Fatal Error: Unable to Load Distribution Index', - 'A connection could not be established to our servers to download the distribution index. No local copies were available to load.

The distribution index is an essential file which provides the latest server information. The launcher is unable to start without it. Ensure you are connected to the internet and relaunch the application.', - 'Close' + 'A connection could not be established to our servers to download the distribution index. No local copies were available to load.

The distribution index is an essential file which provides the latest server information. The launcher is unable to start without it. Ensure you are connected to the internet and relaunch the application.

It is very possible that the launcher has updated and changed the location for the distribution index file. If this is the case, it is recommended to install the latest version of the launcher from the releases page.

If you continue to have issues, please contact the developer of the launcher.', + 'Download Latest Version', + 'Close Launcher' ) setOverlayHandler(() => { const window = remote.getCurrentWindow() window.close() + shell.openExternal('https://github.com/dscalzi/HeliosLauncher/releases') }) - toggleOverlay(true) + toggleOverlay(true, true) }) }, 750) }