PhotoCraft: An open-source, photo editor written by scratch in pure Rust
Merge main into fix/save-added-extension-asks-before-replacing
dotCooCoo77e20dad31bd
diff --cc crates/ui-egui/src/lib.rsindex 28be4f4af,f97c6968f..c4cedac07--- a/crates/ui-egui/src/lib.rs+++ b/crates/ui-egui/src/lib.rs@@@ -469,10 -473,10 +476,14 @@@ pub struct Services/// Size and modification time of a file (native); `None` on the web, where Save never/// writes back to a file.pub file_stamp: Option<FileStampFn>,+ /// Whether two paths reach the same file (native): a save dialog's answer and the path the+ /// save writes to after Lowercase Extension, on a file system that ignores letter case. A save+ /// asks before replacing a file it finds different (`replace_prompt`).+ pub same_file: Option<SameFileFn>,+ /// `write` only asks for the bytes to be kept (a browser download, which the user can+ /// cancel and which reports nothing back), so a save through it names the document but+ /// leaves its changes unsaved and the leave-page guard armed (#4962).+ pub write_unconfirmed: bool,/// Encode and write in one step on a worker thread, so a large save doesn't freeze the/// window (#2017). With background jobs on, saves use it instead of `export` and `write`.pub save_file: Option<SaveFileFn>,