Skip to content

Commit

Permalink
Added a question to the RetryUpdateCheck() private method of the FrmU…
Browse files Browse the repository at this point in the history
…pdate class.
  • Loading branch information
xvitaly committed Jan 20, 2025
1 parent e927cc9 commit 8e6faa5
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
9 changes: 9 additions & 0 deletions src/srcrepair/AppStrings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/srcrepair/AppStrings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,9 @@
<data name="UP_RetryUpdateCheck" xml:space="preserve">
<value>Retrying the update check. Please wait...</value>
</data>
<data name="UP_RetryUpdateCheckQuestion" xml:space="preserve">
<value>Retry the update check?</value>
</data>
<data name="UP_WorkInProgress" xml:space="preserve">
<value>Please wait until the checking for updates process is complete!</value>
</data>
Expand Down
3 changes: 3 additions & 0 deletions src/srcrepair/AppStrings.ru.resx
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,9 @@
<data name="UP_RetryUpdateCheck" xml:space="preserve">
<value>Повтор проверки обновлений. Пожалуйста, подождите...</value>
</data>
<data name="UP_RetryUpdateCheckQuestion" xml:space="preserve">
<value>Повторить попытку проверки обновлений?</value>
</data>
<data name="UP_WorkInProgress" xml:space="preserve">
<value>Пожалуйста, дождитесь завершения процесса проверки обновлений!</value>
</data>
Expand Down
11 changes: 7 additions & 4 deletions src/srcrepair/FrmUpdate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,13 @@ private async Task<bool> IsAppUpdateAvailable()
/// </summary>
private async Task RetryUpdateCheck()
{
IsCompleted = false;
UP_Icon.Image = Properties.Resources.IconUpdateChecking;
UP_Status.Text = AppStrings.UP_RetryUpdateCheck;
await CheckForUpdates();
if (MessageBox.Show(AppStrings.UP_RetryUpdateCheckQuestion, Properties.Resources.AppName, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
{
IsCompleted = false;
UP_Icon.Image = Properties.Resources.IconUpdateChecking;
UP_Status.Text = AppStrings.UP_RetryUpdateCheck;
await CheckForUpdates();
}
}

/// <summary>
Expand Down

0 comments on commit 8e6faa5

Please sign in to comment.