fix pasting image data from external programs

This commit is contained in:
Skyler Lehmkuhl 2026-03-02 07:59:29 -05:00
parent c1266c0377
commit 19617e4223
1 changed files with 7 additions and 0 deletions

View File

@ -2772,6 +2772,13 @@ impl EditorApp {
// Edit menu // Edit menu
MenuAction::Undo => { MenuAction::Undo => {
// An uncommitted floating selection (paste not yet merged) lives
// outside the action stack. Cancelling it IS the undo — dismiss
// it and don't pop anything from the stack.
if self.selection.raster_floating.is_some() {
self.cancel_raster_floating();
return;
}
let undo_succeeded = if let Some(ref controller_arc) = self.audio_controller { let undo_succeeded = if let Some(ref controller_arc) = self.audio_controller {
let mut controller = controller_arc.lock().unwrap(); let mut controller = controller_arc.lock().unwrap();
let mut backend_context = lightningbeam_core::action::BackendContext { let mut backend_context = lightningbeam_core::action::BackendContext {