user: Fix broken display-name property
This commit is contained in:
parent
b4a35372fe
commit
d545bfc220
1 changed files with 4 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue