Merge pull request #2288 from ivandrofly/get_dictionaries

GetDictionaries] - Minor fix for cursor state.
This commit is contained in:
Nikolaj Olsson 2017-03-15 05:34:47 +01:00 committed by GitHub
commit 103dec7ade

View File

@ -122,7 +122,6 @@ namespace Nikse.SubtitleEdit.Forms
var wc = new WebClient { Proxy = Utilities.GetProxy() }; var wc = new WebClient { Proxy = Utilities.GetProxy() };
wc.DownloadDataCompleted += wc_DownloadDataCompleted; wc.DownloadDataCompleted += wc_DownloadDataCompleted;
wc.DownloadDataAsync(new Uri(url)); wc.DownloadDataAsync(new Uri(url));
Cursor = Cursors.Default;
} }
catch (Exception exception) catch (Exception exception)
{ {
@ -137,6 +136,7 @@ namespace Nikse.SubtitleEdit.Forms
private void wc_DownloadDataCompleted(object sender, DownloadDataCompletedEventArgs e) private void wc_DownloadDataCompleted(object sender, DownloadDataCompletedEventArgs e)
{ {
Cursor = Cursors.Default;
if (e.Error != null && _xmlName == "Nikse.SubtitleEdit.Resources.HunspellDictionaries.xml.gz") 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!"); MessageBox.Show("Unable to connect to extensions.services.openoffice.org... Switching host - please re-try!");