From ee02ed7e0a2125a58daae2023fefb01061138824 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 31 Oct 2024 23:29:10 +0200 Subject: [PATCH] remove extra lines --- src/app/browser/window/tab/item/page.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/app/browser/window/tab/item/page.rs b/src/app/browser/window/tab/item/page.rs index c49abdbb..8c7a82b1 100644 --- a/src/app/browser/window/tab/item/page.rs +++ b/src/app/browser/window/tab/item/page.rs @@ -588,16 +588,15 @@ impl Page { // Update window components action_update.activate(Some(&id)); } - Err(reason) => { // Pixbuf::from_stream + Err(reason) => { // Define common data let status = Status::Failure; let title = gformat!("Oops"); - let description = gformat!("{}", reason.message()); // Update widget content.set_status_failure( Some(title.as_str()), - Some(description.as_str()), + Some(reason.message()), None ); @@ -605,7 +604,6 @@ impl Page { meta.replace(Meta { status: Some(status), title: Some(title), - //description: Some(description), }); } } @@ -787,12 +785,11 @@ impl Page { // Define common data let status = Status::Failure; let title = gformat!("Oops"); - let description = gformat!("Request error: {}", reason.message()); // Update widget content.set_status_failure( Some(title.as_str()), - Some(description.as_str()), + Some(reason.message()), None ); @@ -800,7 +797,6 @@ impl Page { meta.replace(Meta { status: Some(status), title: Some(title), - //description: Some(description), }); // Update window