Capture Position question: starting a command or saving while components were moved without capturing asks Capture Position / Revert / Cancel, then goes ahead; ui.capture control method
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AS5Tn3xieewUSg3uxrMVdL
This commit is contained in:
1 parent
9bd7c8eb33
commit
fec99468d2
6 files changed
+122
No files matched your search
@@ -206,6 +206,10 @@ fn file_menu(app: &mut SolveApp, ctx: &egui::Context) {
|
||||
}
|
||||
|
||||
pub fn save(app: &mut SolveApp) {
|
||||
if crate::browser::needs_capture(app, crate::browser::SAVE) {
|
||||
app.tree.capture_prompt = Some(crate::browser::SAVE.into());
|
||||
return;
|
||||
}
|
||||
if app.session.path.is_some() {
|
||||
let _ = app.run("SaveDocumentCommand", json!({}));
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user