forked from organicmaps/organicmaps
[downloader] Hide zero sizes for downloaded nodes
This commit is contained in:
parent
d4e53a248f
commit
53aca94a7a
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue