forked from 1b-agent/fieldcraft-upstream
App: a --control run keeps its autosaves out of the user's recovery folder
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UhhZMBTviDQxZvwnyP89fo
This commit is contained in:
1 parent
b1180bf987
commit
6bb3b04e60
1 file changed
+5
@@ -150,6 +150,11 @@ fn main() -> eframe::Result {
|
|||||||
std::process::exit(2);
|
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 {
|
let options = eframe::NativeOptions {
|
||||||
viewport: egui::ViewportBuilder::default()
|
viewport: egui::ViewportBuilder::default()
|
||||||
.with_title("FieldCraft")
|
.with_title("FieldCraft")
|
||||||
|
|||||||
Reference in new issue
Block a user