mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
remove extra lines
This commit is contained in:
parent
30776f1c11
commit
ee02ed7e0a
@ -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…
x
Reference in New Issue
Block a user