From 1df153a1634bdc8886c0cb6590e54b8bf4772569 Mon Sep 17 00:00:00 2001 From: 1zuna Date: Mon, 22 Apr 2024 23:45:09 +0200 Subject: [PATCH] feat: additional help on failed download page --- src-tauri/src/app/webview.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src-tauri/src/app/webview.rs b/src-tauri/src/app/webview.rs index 7d3beb7..33b170d 100644 --- a/src-tauri/src/app/webview.rs +++ b/src-tauri/src/app/webview.rs @@ -39,7 +39,10 @@ pub async fn open_download_page(url: &str, launcher_data: &LauncherData MAX_DOWNLOAD_ATTEMPTS { - bail!("Failed to open download page after {} attempts", MAX_DOWNLOAD_ATTEMPTS); + bail!("Failed to open download page after {} attempts.\n\n\ + If the download window does not appear, please try restarting LiquidLauncher with administrator privileges.\n\ + If this does not help, please install LiquidBounce manually (https://liquidbounce.net/docs/Tutorials/Installation).\n\ + Or try our advice at https://liquidbounce.net/docs/Tutorials/Fixing%20LiquidLauncher.", MAX_DOWNLOAD_ATTEMPTS); } launcher_data.progress_update(ProgressUpdate::SetLabel(format!("Opening download page... (Attempt {}/{})", count, MAX_DOWNLOAD_ATTEMPTS)));