Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Conceição <Tiago_caza@hotmail.com>2022-08-28 17:05:07 +0300
committerTiago Conceição <Tiago_caza@hotmail.com>2022-08-28 17:05:07 +0300
commitaed8136baefdf2f1864c9e1d0c3d16dadf396169 (patch)
tree7ad74d7887d1e746c01883865e0386a3fe231652 /UVtools.WPF
parent466f328c6334137f663d816ad84dd9c4906343eb (diff)
- (Fix) Undo cause application to crash (#543)
Diffstat (limited to 'UVtools.WPF')
-rw-r--r--UVtools.WPF/MainWindow.Clipboard.cs4
-rw-r--r--UVtools.WPF/MainWindow.axaml.cs2
2 files changed, 3 insertions, 3 deletions
diff --git a/UVtools.WPF/MainWindow.Clipboard.cs b/UVtools.WPF/MainWindow.Clipboard.cs
index 42f2466..97e43a1 100644
--- a/UVtools.WPF/MainWindow.Clipboard.cs
+++ b/UVtools.WPF/MainWindow.Clipboard.cs
@@ -54,13 +54,13 @@ public partial class MainWindow
CanSave = true;
if ((_globalModifiers & KeyModifiers.Shift) != 0)
{
- ClipboardUndo(true);
+ ClipboardUndoAndRerun(true);
return;
}
Clipboard.Undo();
}
- public async void ClipboardUndo(bool rerun)
+ public async void ClipboardUndoAndRerun(bool rerun)
{
CanSave = true;
var clip = Clipboard.CurrentClip;
diff --git a/UVtools.WPF/MainWindow.axaml.cs b/UVtools.WPF/MainWindow.axaml.cs
index 50f1229..9c6588e 100644
--- a/UVtools.WPF/MainWindow.axaml.cs
+++ b/UVtools.WPF/MainWindow.axaml.cs
@@ -907,7 +907,7 @@ public partial class MainWindow : WindowEx
e.Key == Key.Z)
{
e.Handled = true;
- ClipboardUndo(true);
+ ClipboardUndoAndRerun(true);
return;
}