Skip to content

Commit

Permalink
Full refresh after extract or publish (for #19)
Browse files Browse the repository at this point in the history
  • Loading branch information
chelh committed Apr 26, 2017
1 parent 1f7dca1 commit 5c27cec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/VBASync.WPF/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ private void ApplyButton_Click(object sender, RoutedEventArgs e)
return;
}

_vm.ActiveSession.Apply(committedChanges, p => changes.Remove(p));
_vm.ActiveSession.Apply(committedChanges);

UpdateIncludeAllBox();
QuietRefreshIfInputsOk();
}

private void CancelButton_Click(object sender, RoutedEventArgs e) {
Expand Down
4 changes: 1 addition & 3 deletions src/VBASync/Model/ActiveSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public ActiveSession(ISession session)

public string FolderPath => _vf.FolderPath;

public void Apply(IEnumerable<Patch> changes, Action<Patch> onCommitted = null)
public void Apply(IEnumerable<Patch> changes)
{
if (_session.Action == ActionType.Extract)
{
Expand All @@ -45,7 +45,6 @@ public void Apply(IEnumerable<Patch> changes, Action<Patch> onCommitted = null)
}
break;
}
onCommitted?.Invoke(p);
}
}
else
Expand Down Expand Up @@ -73,7 +72,6 @@ public void Apply(IEnumerable<Patch> changes, Action<Patch> onCommitted = null)
}
break;
}
onCommitted?.Invoke(p);
}
_vf.Write(_session.FilePath);
}
Expand Down

0 comments on commit 5c27cec

Please sign in to comment.