Browse Source

Revert "1) changed UpdateLastState to call UpdateLastState(TState) so that its the only one that has last update control"

This reverts commit 16ea6a31fc.
pull/1512/head
Achal Shah 8 years ago
committed by achal7
parent
commit
7623a18a53
  1. 3
      src/Avalonia.Controls/Utils/UndoRedoHelper.cs

3
src/Avalonia.Controls/Utils/UndoRedoHelper.cs

@ -59,7 +59,7 @@ namespace Avalonia.Controls.Utils
public void UpdateLastState()
{
UpdateLastState(_host.UndoRedoState);
_states.Last.Value = _host.UndoRedoState;
}
public void DiscardRedo()
@ -94,7 +94,6 @@ namespace Avalonia.Controls.Utils
public void Clear()
{
_states.Clear();
_currentNode = null;
}
bool WeakTimer.IWeakTimerSubscriber.Tick()

Loading…
Cancel
Save