user: Fix broken display-name property

This commit is contained in:
Julian Sparber 2021-12-02 18:12:51 +01:00
parent b4a35372fe
commit d545bfc220

View file

@ -64,7 +64,7 @@ mod imp {
fn set_property(
&self,
_obj: &Self::Type,
obj: &Self::Type,
_id: usize,
value: &glib::Value,
pspec: &glib::ParamSpec,
@ -74,6 +74,9 @@ mod imp {
let user_id = value.get::<&str>().unwrap().try_into().unwrap();
self.user_id.set(user_id).unwrap();
}
"display-name" => {
obj.set_display_name(value.get::<Option<String>>().unwrap());
}
"session" => self
.session
.set(value.get::<Session>().unwrap().downgrade())