image: Refresh file info after file rename

This commit is contained in:
Sophie Herold 2023-12-04 17:19:33 +01:00
parent c0f435386d
commit 2fdfe5657c
5 changed files with 109 additions and 35 deletions

View file

@ -153,7 +153,7 @@ impl LpImagePage {
pub fn from_file(file: &gio::File) -> Self {
let obj = glib::Object::new::<Self>();
obj.imp().image.set_file(file);
obj.imp().image.init(file);
glib::spawn_future_local(clone!(@weak obj, @strong file => async move {
let imp = obj.imp();