Utils.urlExtension: don't lowercase returned ext
This commit is contained in:
parent
ff642485e8
commit
2a2b3df845
|
@ -14,7 +14,8 @@ Image {
|
|||
|
||||
property bool broken: false
|
||||
property bool animate: true
|
||||
property bool animated: utils.urlExtension(image.source) === "gif"
|
||||
property bool animated:
|
||||
utils.urlExtension(image.source).toLowerCase() === "gif"
|
||||
|
||||
property alias showProgressBar: progressBarLoader.active
|
||||
property bool inderterminateProgressBar: false
|
||||
|
|
|
@ -10,7 +10,7 @@ HMxcImage {
|
|||
horizontalAlignment: Image.AlignLeft
|
||||
|
||||
animated: loader.singleMediaInfo.media_mime === "image/gif" ||
|
||||
utils.urlExtension(loader.mediaUrl) === "gif"
|
||||
utils.urlExtension(loader.mediaUrl).toLowerCase() === "gif"
|
||||
thumbnail: ! animated && loader.thumbnailMxc
|
||||
mxc: thumbnail ?
|
||||
(loader.thumbnailMxc || loader.mediaUrl) :
|
||||
|
|
|
@ -59,7 +59,7 @@ HLoader {
|
|||
return EventDelegate.Media.File
|
||||
|
||||
// If this is a preview for a link in a normal message
|
||||
const ext = utils.urlExtension(mediaUrl)
|
||||
const ext = utils.urlExtension(mediaUrl).toLowerCase()
|
||||
|
||||
if (imageExtensions.includes(ext)) return EventDelegate.Media.Image
|
||||
if (videoExtensions.includes(ext)) return EventDelegate.Media.Video
|
||||
|
|
|
@ -83,7 +83,7 @@ QtObject {
|
|||
|
||||
|
||||
function onModelItemFieldChanged(syncId, oldIndex, newIndex, field, value){
|
||||
// print("change", syncId, oldIndex, newIndex, field, value)
|
||||
print("\u001b[37mchange", syncId, oldIndex, newIndex, field, value, "\u001b[0m")
|
||||
const model = ModelStore.get(syncId)
|
||||
model.setProperty(oldIndex, field, value)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user