Skip to content

Commit

Permalink
Merge pull request SubtitleEdit#2288 from ivandrofly/get_dictionaries
Browse files Browse the repository at this point in the history
GetDictionaries] - Minor fix for cursor state.
  • Loading branch information
niksedk authored Mar 15, 2017
2 parents 01d188d + e007059 commit 103dec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Forms/GetDictionaries.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ private void buttonDownload_Click(object sender, EventArgs e)
var wc = new WebClient { Proxy = Utilities.GetProxy() };
wc.DownloadDataCompleted += wc_DownloadDataCompleted;
wc.DownloadDataAsync(new Uri(url));
Cursor = Cursors.Default;
}
catch (Exception exception)
{
Expand All @@ -137,6 +136,7 @@ private void buttonDownload_Click(object sender, EventArgs e)

private void wc_DownloadDataCompleted(object sender, DownloadDataCompletedEventArgs e)
{
Cursor = Cursors.Default;
if (e.Error != null && _xmlName == "Nikse.SubtitleEdit.Resources.HunspellDictionaries.xml.gz")
{
MessageBox.Show("Unable to connect to extensions.services.openoffice.org... Switching host - please re-try!");
Expand Down

0 comments on commit 103dec7

Please sign in to comment.