Skip to content

Commit

Permalink
feat: additional help on failed download page
Browse files Browse the repository at this point in the history
  • Loading branch information
1zun4 committed Apr 22, 2024
1 parent 827cd60 commit 1df153a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src-tauri/src/app/webview.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ pub async fn open_download_page(url: &str, launcher_data: &LauncherData<Shareabl
count += 1;

if count > 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)));
Expand Down

0 comments on commit 1df153a

Please sign in to comment.