mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
fix: GTK file list size and progress % regression (#3127)
This commit is contained in:
parent
0ce8777d1f
commit
b4624cc775
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue