diff options
Diffstat (limited to 'UVtools.WPF/MainWindow.Clipboard.cs')
-rw-r--r-- | UVtools.WPF/MainWindow.Clipboard.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/UVtools.WPF/MainWindow.Clipboard.cs b/UVtools.WPF/MainWindow.Clipboard.cs index 6ef670c..bf8435d 100644 --- a/UVtools.WPF/MainWindow.Clipboard.cs +++ b/UVtools.WPF/MainWindow.Clipboard.cs @@ -51,6 +51,7 @@ namespace UVtools.WPF public void ClipboardUndo() { + CanSave = true; if ((_globalModifiers & KeyModifiers.Shift) != 0) { ClipboardUndo(true); @@ -61,6 +62,7 @@ namespace UVtools.WPF public async void ClipboardUndo(bool rerun) { + CanSave = true; var clip = Clipboard.CurrentClip; Clipboard.Undo(); if (!rerun) @@ -72,9 +74,16 @@ namespace UVtools.WPF if (operation is null) { Clipboard.Redo(); + CanSave = false; } } + public void ClipboardRedo() + { + CanSave = true; + Clipboard.Redo(); + } + public async void ClipboardClear() { if (await this.MessageBoxQuestion("Are you sure you want to clear the clipboard?\n" + |