Commit 7bef4c75 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Improve displayed size

If it's not installed show the download size

BUG: 388734
parent 86ab5059
......@@ -49,7 +49,7 @@ QString SnapResource::comment()
int SnapResource::size()
return m_snap->installedSize();
return isInstalled() ? m_snap->installedSize() : m_snap->downloadSize();
QUrl SnapResource::homepage()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment