Browse Source

Added UndoManager Debugger Display

CPKreuz 4 years ago
parent
commit
81cfdbe5cd
1 changed files with 2 additions and 0 deletions
  1. 2 0
      PixiEditor/Models/Controllers/UndoManager.cs

+ 2 - 0
PixiEditor/Models/Controllers/UndoManager.cs

@@ -1,5 +1,6 @@
 using System;
 using System.Collections.Generic;
+using System.Diagnostics;
 using System.Linq;
 using System.Reflection;
 using PixiEditor.Models.Undo;
@@ -7,6 +8,7 @@ using PixiEditor.ViewModels;
 
 namespace PixiEditor.Models.Controllers
 {
+    [DebuggerDisplay("{UndoStack.Count} undo steps, {RedoStack.Count} redo step(s)")]
     public class UndoManager
     {
         private bool lastChangeWasUndo;