Skip to content

Conversation

tsvietOK
Copy link
Contributor

Optimize code

@tsvietOK tsvietOK requested a review from yaira2 June 19, 2020 19:08
@yaira2 yaira2 added the ready to merge Pull requests that are approved and ready to merge label Jun 19, 2020
@yaira2 yaira2 merged commit b532219 into files-community:master Jun 19, 2020
@tsvietOK tsvietOK deleted the fix-properties branch June 19, 2020 19:34
@@ -332,7 +331,6 @@ public async Task GetPropertiesAsync(CancellationTokenSource _tokenSource)
catch (Exception ex)
{
NLog.LogManager.GetCurrentClassLogger().Error(ex, ex.Message);
ItemMD5HashProgress.Value = ItemMD5HashProgress.Maximum;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If ShowError is true, the color of ProgressBar will become yellow to indicate that there're errors occurred.
However, if the value of ProgressBar is 0, user won't know that the progress of calculation failed because nothing becomes yellow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Pull requests that are approved and ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants