fix pasting image data from external programs
This commit is contained in:
parent
c1266c0377
commit
19617e4223
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue