mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
implement separated mod with options for failure component
This commit is contained in:
parent
1d4a3cbd42
commit
931dc1cfc2
5 changed files with 92 additions and 26 deletions
|
|
@ -40,10 +40,10 @@ impl Content {
|
|||
self.gobject.append(image.gobject());
|
||||
}
|
||||
|
||||
pub fn set_status_failure(&self, title: &str, description: &str) {
|
||||
pub fn set_status_failure(&self, title: Option<&str>, description: Option<&str>) {
|
||||
self.clean();
|
||||
|
||||
let status_default = Status::new_error(title, description);
|
||||
let status_default = Status::new_failure(title, description);
|
||||
|
||||
self.gobject.append(status_default.gobject());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue