fix: GTK file list size and progress % regression (#3127)

This commit is contained in:
orbital-mango 2022-05-25 19:27:33 +01:00 committed by GitHub
parent 0ce8777d1f
commit b4624cc775
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -160,7 +160,7 @@ bool refreshFilesForeach(
auto new_have = decltype(old_have){};
auto new_priority = int{};
auto new_progress = int{};
auto new_size = decltype(old_have){};
auto new_size = decltype(old_size){};
if (is_file)
{
@ -170,11 +170,11 @@ bool refreshFilesForeach(
new_enabled = file.wanted;
new_priority = file.priority;
new_have = file.have;
new_progress = file.progress;
new_size = file.length;
new_progress = static_cast<int>(100 * file.progress);
}
else
{
new_size = 0;
new_enabled = NOT_SET;
new_priority = NOT_SET;