Skip to content

Commit

Permalink
* Don't hide info text when updating
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDead committed Apr 16, 2018
1 parent 29ff744 commit 3ef9e6d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions UpdateManager/Windows/UpdateWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ private void BtnDownload_OnClick(object sender, RoutedEventArgs e)
_downloadClient.DownloadFileCompleted += WebClient_OnDownloadFileCompleted;

PgbDownloadStatus.Visibility = Visibility.Visible;
TxtInfo.Visibility = Visibility.Collapsed;
_downloadLocation = sfd.FileName;

_downloadClient.DownloadFileAsync(new Uri(DownloadUrl), sfd.FileName);
Expand All @@ -172,7 +171,6 @@ private void BtnDownload_OnClick(object sender, RoutedEventArgs e)
catch (Exception ex)
{
PgbDownloadStatus.Visibility = Visibility.Collapsed;
TxtInfo.Visibility = Visibility.Visible;
BtnDownload.IsEnabled = true;
MessageBox.Show(ex.Message, Title, MessageBoxButton.OK, MessageBoxImage.Error);
}
Expand All @@ -193,7 +191,6 @@ private void WebClient_OnDownloadFileCompleted(object sender, AsyncCompletedEven
}

PgbDownloadStatus.Visibility = Visibility.Collapsed;
TxtInfo.Visibility = Visibility.Visible;
BtnDownload.IsEnabled = true;

if (MessageBox.Show(UpdateNowText, Title, MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes)
Expand Down

0 comments on commit 3ef9e6d

Please sign in to comment.