Eject instead of unmount, fixes #479

This commit is contained in:
Jeremy Soller 2024-10-04 19:07:26 -06:00
parent c511242dd4
commit 218630b7e0
No known key found for this signature in database
GPG key ID: D02FD439211AF56F

View file

@ -418,12 +418,10 @@ impl Gvfs {
continue;
}
//TODO: do eject instead of unmount?
log::info!("unmount {}", name);
MountExt::unmount_with_operation(
MountExt::eject_with_operation(
&mount,
gio::MountUnmountFlags::NONE,
//TODO: gio::MountOperation needed for network shares with auth
gio::MountOperation::NONE,
gio::Cancellable::NONE,
move |result| {