Skip to content

Commit

Permalink
Change cursor to wait cursor while fetching remote repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
Scepheo committed May 16, 2019
1 parent 1c190a6 commit ea2a76b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/GitMan/Context.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@ void onClick(object sender, EventArgs eventArgs) { }

void onPopup(object sender, EventArgs eventArgs)
{
var originalCursor = Cursor.Current;
Cursor.Current = Cursors.WaitCursor;

var clientConfig = new AzureClientConfig
{
Organization = provider.Organization,
Expand All @@ -263,6 +266,8 @@ void onPopup(object sender, EventArgs eventArgs)

menuItem.MenuItems.Clear();
menuItem.MenuItems.AddRange(menuItems);

Cursor.Current = originalCursor;
}

void onSelect(object sender, EventArgs eventArgs) { }
Expand Down

0 comments on commit ea2a76b

Please sign in to comment.