App: a --control run keeps its autosaves out of the user's recovery folder

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UhhZMBTviDQxZvwnyP89fo
This commit is contained in:
jyvikoandClaude Opus 5.5 authored and Irakli Kourtis committed 2026-10-14 22:11:13 -04:00
1 parent b1180bf987
commit 6bb3b04e60
1 file changed
+5
+5
View File
@@ -150,6 +150,11 @@ fn main() -> eframe::Result {
std::process::exit(2);
}
};
if args.control.is_some() {
// A run driven by automation keeps its autosaves (and recent files and preferences, which
// live beside them) in a temporary folder, never the user's.
fieldcraft_io::recovery::use_automation_dir();
}
let options = eframe::NativeOptions {
viewport: egui::ViewportBuilder::default()
.with_title("FieldCraft")