return reference to self

This commit is contained in:
yggverse 2024-10-31 20:06:22 +02:00
parent 8e2e430bc6
commit 41875de347

View File

@ -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