Commit f3d4aa54 authored by Karel Slaný's avatar Karel Slaný

Removed redundant code.

parent 2b4e7f55
......@@ -68,12 +68,6 @@ Item {
return filePath.replace(/^.*[\\\/]/, '')
}
/* Return file size string in bytes or kilobytes */
function getFileSizeString(fileSize) {
return (fileSize >= 1024) ? "~" + Math.ceil(fileSize / 1024) + " kB"
: "~" + (fileSize) + " B"
}
/* Check if message has fill an attachment and check total size */
function checkAttachmentSizes() {
attachmentsSizeLabel.color = datovkaPalette.text
......@@ -581,7 +575,7 @@ Item {
font.pointSize: textFontSizeSmall
}
Text {
text: getFileSizeString(rFileSizeBytes)
text: rFileSizeStr
color: datovkaPalette.mid
font.pointSize: textFontSizeSmall
}
......
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