diff options
Diffstat (limited to 'UVtools.WPF/MainWindow.Issues.cs')
-rw-r--r-- | UVtools.WPF/MainWindow.Issues.cs | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/UVtools.WPF/MainWindow.Issues.cs b/UVtools.WPF/MainWindow.Issues.cs index 2971ea6..5e9c513 100644 --- a/UVtools.WPF/MainWindow.Issues.cs +++ b/UVtools.WPF/MainWindow.Issues.cs @@ -111,7 +111,9 @@ namespace UVtools.WPF IsGUIEnabled = false; - + + Clipboard.Snapshot(); + var task = await Task.Factory.StartNew(() => { ShowProgressWindow("Removing selected issues"); @@ -160,7 +162,7 @@ namespace UVtools.WPF } } - progress++; + progress.LockAndIncrement(); }); if (layersRemove.Count > 0) @@ -181,7 +183,11 @@ namespace UVtools.WPF IsGUIEnabled = true; - if (!task) return; + if (!task) + { + Clipboard.RestoreSnapshot(); + return; + } var whiteListLayers = new List<uint>(); @@ -207,6 +213,8 @@ namespace UVtools.WPF } + Clipboard.Clip($"Manually removed {issueRemoveList.Count} issues"); + Issues.RemoveMany(issueRemoveList); if (layersRemove.Count > 0) |