applets/notifications: Fix displaying bytes in details

Original commit message(s)

  • applets/notifications: Fix displaying bytes in details

Add missing const. You cannot (and we surely don't want them here) have global variables in QML.

Also, pass the number to formatByteSize since it needs to do maths. And it already does localeString 'f' internally, so we can use the return value verbatim.

Amends commit cea788a2

Reason for the change

Notification details didn’t show file/dir/byte count anymore.

Test plan

Downloaded a file, it’s shown again. Also not sure what the deal with the changes to formatByteSize was but that should just be used as-is.

Edited by Kai Uwe Broulik

Merge request reports

Loading