mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-24 04:02:36 +01:00
Merge pull request #2288 from ivandrofly/get_dictionaries
GetDictionaries] - Minor fix for cursor state.
This commit is contained in:
commit
103dec7ade
@ -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!");
|
||||||
|
Loading…
Reference in New Issue
Block a user