mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 03:18:49 +03:00
Limit max memory usage of images
This commit is contained in:
parent
07b5f0805f
commit
d409bab838
1 changed files with 4 additions and 1 deletions
|
@ -2,7 +2,8 @@
|
||||||
//
|
//
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
import QtQuick 2.12
|
import QtQuick 2.15
|
||||||
|
import QtQuick.Window 2.15
|
||||||
import im.nheko 1.0
|
import im.nheko 1.0
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
@ -46,6 +47,8 @@ Item {
|
||||||
smooth: true
|
smooth: true
|
||||||
mipmap: true
|
mipmap: true
|
||||||
|
|
||||||
|
sourceSize.width: Math.min(Screen.desktopAvailableWidth, originalWidth || undefined)
|
||||||
|
sourceSize.height: Math.min(Screen.desktopAvailableHeight, originalWidth*proportionalHeight || undefined)
|
||||||
}
|
}
|
||||||
|
|
||||||
MxcAnimatedImage {
|
MxcAnimatedImage {
|
||||||
|
|
Loading…
Reference in a new issue