[downloader] Hide zero sizes for downloaded nodes

This commit is contained in:
Sergey Yershov 2016-05-16 11:55:39 +03:00
parent d4e53a248f
commit 53aca94a7a

View file

@ -80,8 +80,9 @@ namespace
unselectedAttrs:kUnselectedTitleAttrs];
TMwmSize const size = self.mode == mwm::DownloaderMode::Downloaded
? nodeAttrs.m_downloadingMwmSize
: nodeAttrs.m_mwmSize - nodeAttrs.m_downloadingMwmSize;
: nodeAttrs.m_mwmSize - nodeAttrs.m_localMwmSize;
self.downloadSize.text = formattedSize(size);
self.downloadSize.hidden = (size == 0);
}
- (void)configProgress:(storage::NodeAttrs const &)nodeAttrs