Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

831 reverse command #834

Merged
merged 2 commits into from
Oct 23, 2020
Merged

831 reverse command #834

merged 2 commits into from
Oct 23, 2020

Conversation

msevestre
Copy link
Member

No description provided.

@msevestre msevestre requested a review from Yuri05 October 23, 2020 17:38
@@ -93,7 +93,7 @@ public interface IReversibleCommand<in TExecutionContext> : ICommand<TExecutionC
/// <summary>
/// Create an inverse for the current command
/// </summary>
IReversibleCommand<TExecutionContext> InverseCommand(TExecutionContext context);
ICommand<TExecutionContext> InverseCommand(TExecutionContext context);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Yuri05 I am changing this to not require the undo command to also be undoable. That way we can have the best of both worlds

@@ -25,7 +25,7 @@ public static bool IsEmpty(this ICommand command)
public static bool IsEmptyMacro(this ICommand command)
{
var macroCommand = command as IMacroCommand;
return macroCommand != null && macroCommand.IsEmtpy;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've had this typo since the beginning!!

@msevestre msevestre merged commit b4655bb into develop Oct 23, 2020
@msevestre msevestre deleted the 831-reverse-command branch October 23, 2020 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant