Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Choosing "Stage" or "Unstage" from context menu can do the wrong thing #751

Description

@BinaryMuse

To reproduce:

  1. Select a file in the "Unstaged Changes" list
  2. Right-click the empty space in the "Staged Changes" list
  3. Select "Unstage"

Expected:

Nothing happens as nothing in the Staged Changes list was selected

Observed:

The selected file from the Unstaged Changes list is staged.

github-package-weird-list-menus

This happens because we dispatch core:confirm for both the "Stage" and "Unstage" context menu items.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions