HMxcImage: Fix "invalid write to property httpUrl"

This commit is contained in:
miruka 2019-11-04 14:55:26 -04:00
parent 6586403985
commit ea0cda6aa8

View File

@ -10,7 +10,9 @@ HImage {
Qt.callLater(update)
if (mxc.startsWith("mxc://")) {
py.callCoro("mxc_to_http", [mxc], http => { httpUrl = http || "" })
py.callCoro("mxc_to_http", [mxc], http => {
image.httpUrl = http || ""
})
} else {
httpUrl = mxc
}