Skip to content

Change Amend Commit menu item to use an action instead of bindings - #95

Merged
tiennou merged 1 commit into
gitx:masterfrom
ksuther:fix-amend-menu-item
Jul 4, 2017
Merged

tiennou merged 1 commit into
gitx:masterfrom
ksuther:fix-amend-menu-item

Conversation

@ksuther

@ksuther ksuther commented May 2, 2017

Copy link
Copy Markdown
Contributor

Bindings can make the menu item behavior act erratically because the binding state is shared across the app, not per-document.
This also adds a checkmark to the menu item when amending is active.

Steps to reproduce a problem like this:

  • Open a repository
  • Select Amend Commit to start amending
  • Close the repository
  • Open the same repository
  • Select Amend Commit to start amending again
  • This time the menu item sets amend to NO instead of YES, so nothing happens the first time you select the menu item

Bindings can make the menu item behavior act erratically because the binding state is shared across the app, not per-document.
This also adds a checkmark to the menu item when amending is active.

Steps to reproduce a problem like this:
- Open a repository
- Select Amend Commit to start amending
- Close the repository
- Open the same repository
- Select Amend Commit to start amending again
- This time the menu item sets amend to NO instead of YES, so nothing happens the first time you select the menu item
@ksuther

ksuther commented Jun 19, 2017

Copy link
Copy Markdown
Contributor Author

Any possibility of merging these and other recent PRs? Thanks!

@tiennou
tiennou merged commit c2b4659 into gitx:master Jul 4, 2017
@ksuther
ksuther deleted the fix-amend-menu-item branch July 5, 2017 17:14
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.

2 participants