mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-13 06:01:21 +00:00
return reference to self
This commit is contained in:
parent
8e2e430bc6
commit
41875de347
@ -43,8 +43,11 @@ impl Status {
|
||||
/// Set new description for status component
|
||||
///
|
||||
/// Useful for loading widgets to update byte totals and other dynamically changed information
|
||||
pub fn set_description(&self, description: Option<&str>) {
|
||||
///
|
||||
/// Return `Self` reference to apply another functions in chain
|
||||
pub fn set_description(&self, description: Option<&str>) -> &Self {
|
||||
self.gobject.set_description(description);
|
||||
&self
|
||||
}
|
||||
|
||||
// Getters
|
||||
|
Loading…
x
Reference in New Issue
Block a user