Doesn't set the username if it's empty

This commit is contained in:
Daniel García Moreno 2017-11-14 02:51:43 +01:00
parent 659600ab03
commit 03d5e7bfcf

View file

@ -127,7 +127,10 @@ impl<'a> MessageBox<'a> {
if let Ok(pixbuf) = Pixbuf::new_from_file_at_scale(&avatar, 40, 40, false) {
a.set_from_pixbuf(&pixbuf);
}
u.set_markup(&format!("<b>{}</b>", name));
if !name.is_empty() {
u.set_markup(&format!("<b>{}</b>", name));
}
gtk::Continue(false)
}
});