diff options
Diffstat (limited to 'src/app.rs')
-rw-r--r-- | src/app.rs | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -662,6 +662,11 @@ impl<'ctx> AppState<'ctx> { | |||
662 | self.apply_operation(op, OpKind::Undo); | 662 | self.apply_operation(op, OpKind::Undo); |
663 | } | 663 | } |
664 | } | 664 | } |
665 | Keycode::R => { | ||
666 | if let Some(op) = self.undo_stack.redo() { | ||
667 | self.apply_operation(op, OpKind::Redo); | ||
668 | } | ||
669 | } | ||
665 | // export to file | 670 | // export to file |
666 | Keycode::N => { | 671 | Keycode::N => { |
667 | let image = self.export(); | 672 | let image = self.export(); |
@@ -670,11 +675,6 @@ impl<'ctx> AppState<'ctx> { | |||
670 | eprintln!("writing to file"); | 675 | eprintln!("writing to file"); |
671 | buffer.write_all(&encoded[..]).unwrap(); | 676 | buffer.write_all(&encoded[..]).unwrap(); |
672 | } | 677 | } |
673 | Keycode::R => { | ||
674 | if let Some(op) = self.undo_stack.redo() { | ||
675 | self.apply_operation(op, OpKind::Redo); | ||
676 | } | ||
677 | } | ||
678 | _ => (), | 678 | _ => (), |
679 | } | 679 | } |
680 | } | 680 | } |