jgrulich created this revision. Restricted Application added a project: Plasma. Restricted Application added a subscriber: plasma-devel.
REVISION SUMMARY Currently in discover we show app size, but we don't make difference between download size and installed size which can be different (e.g. in flatpak backend). This patch adds download/installed size labels into the UI instead the original "size" label. The download size label is shown only when the application is not installed or there is an update available. The installed size label is shown all the time, except if the size is zero which doesn't make sense. If backend doesn't have download/installed size properties implemented then the original size label is shown instead so current backends remains unchtouched REPOSITORY R134 Discover Software Store BRANCH master REVISION DETAIL https://phabricator.kde.org/D4967 AFFECTED FILES discover/qml/ApplicationPage.qml libdiscover/backends/FlatpakBackend/FlatpakResource.cpp libdiscover/backends/FlatpakBackend/FlatpakResource.h libdiscover/resources/AbstractResource.cpp libdiscover/resources/AbstractResource.h libdiscover/resources/ResourcesProxyModel.cpp libdiscover/resources/ResourcesProxyModel.h To: jgrulich Cc: plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol