image: Refresh file info after file rename
This commit is contained in:
parent
c0f435386d
commit
2fdfe5657c
5 changed files with 109 additions and 35 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue