From 9411208c74c1fd081243da673932638129052615 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 12 Dec 2024 15:57:22 +0200 Subject: [PATCH] use title from status --- src/app/browser/window/tab/item/page.rs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/app/browser/window/tab/item/page.rs b/src/app/browser/window/tab/item/page.rs index a8b0f346..13516fb2 100644 --- a/src/app/browser/window/tab/item/page.rs +++ b/src/app/browser/window/tab/item/page.rs @@ -467,14 +467,8 @@ impl Page { snap_history(navigation.clone()); } if is_download { - // Update meta - meta.set_status(Status::Success).set_title("Download"); - - // Update window - update.activate(Some(&id)); - // Init download widget - content.to_status_download( + let status = content.to_status_download( &uri_to_title(&uri), // grab default filename &cancellable, { @@ -526,6 +520,13 @@ impl Page { } } ); + + // Update meta + meta.set_status(Status::Success) + .set_title(&status.title()); + + // Update window + update.activate(Some(&id)); } else { // browse match response.meta.mime.unwrap().value.to_lowercase().as_str() { "text/gemini" => {