1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +00:00

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

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;