cs_user: Use the scaled face image when choosing a picture from file

Choosing a picture with "Browse for more pictures" passed the original
file to AccountsService instead of the scaled ~/.face copy. AccountsService
rejects icon files larger than 1MB, so large images never updated the
user icon and the menu kept showing the old picture.

Fixes #13489
This commit is contained in:
dualfroz committed 2026-10-13 23:09:13 +02:00
1 parent 2aef1f78fb
commit da4a4cc52b
1 file changed
+2 -2
@@ -214,8 +214,8 @@ class Module:
pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_size(path, 255, -1) pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_size(path, 255, -1)
pixbuf.savev(face_path, "png") pixbuf.savev(face_path, "png")
self.accountService.set_icon_file(path) self.accountService.set_icon_file(face_path)
self.face_button.set_picture_from_file(path) self.face_button.set_picture_from_file(face_path)
dialog.destroy() dialog.destroy()