Browse Source

remove extra lines

master
yggverse 1 month ago
parent
commit
ee02ed7e0a
  1. 10
      src/app/browser/window/tab/item/page.rs

10
src/app/browser/window/tab/item/page.rs

@ -588,16 +588,15 @@ impl Page {
// Update window components // Update window components
action_update.activate(Some(&id)); action_update.activate(Some(&id));
} }
Err(reason) => { // Pixbuf::from_stream Err(reason) => {
// Define common data // Define common data
let status = Status::Failure; let status = Status::Failure;
let title = gformat!("Oops"); let title = gformat!("Oops");
let description = gformat!("{}", reason.message());
// Update widget // Update widget
content.set_status_failure( content.set_status_failure(
Some(title.as_str()), Some(title.as_str()),
Some(description.as_str()), Some(reason.message()),
None None
); );
@ -605,7 +604,6 @@ impl Page {
meta.replace(Meta { meta.replace(Meta {
status: Some(status), status: Some(status),
title: Some(title), title: Some(title),
//description: Some(description),
}); });
} }
} }
@ -787,12 +785,11 @@ impl Page {
// Define common data // Define common data
let status = Status::Failure; let status = Status::Failure;
let title = gformat!("Oops"); let title = gformat!("Oops");
let description = gformat!("Request error: {}", reason.message());
// Update widget // Update widget
content.set_status_failure( content.set_status_failure(
Some(title.as_str()), Some(title.as_str()),
Some(description.as_str()), Some(reason.message()),
None None
); );
@ -800,7 +797,6 @@ impl Page {
meta.replace(Meta { meta.replace(Meta {
status: Some(status), status: Some(status),
title: Some(title), title: Some(title),
//description: Some(description),
}); });
// Update window // Update window

Loading…
Cancel
Save