summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-06-04 02:44:41 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2023-06-08 22:32:13 +0200
commit686cade0abb46c635d4751d7527cf53170121a7c (patch)
tree469399a710048fa4feb836638b20d92de3725307
parentFix member event binding loop (diff)
downloadnheko-686cade0abb46c635d4751d7527cf53170121a7c.tar.xz
Fix some undefined variables in the UploadBox
-rw-r--r--resources/qml/UploadBox.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/resources/qml/UploadBox.qml b/resources/qml/UploadBox.qml
index 54007163..215003ec 100644
--- a/resources/qml/UploadBox.qml
+++ b/resources/qml/UploadBox.qml
@@ -36,6 +36,7 @@ Page {
 
         }
         delegate: Pane {
+            id: pane
             height: uploadPopup.availableHeight - buttons.height - (scr.visible ? scr.height : 0)
             padding: Nheko.paddingSmall
             width: uploadPopup.availableHeight - buttons.height
@@ -63,8 +64,8 @@ Page {
                     mipmap: true
                     smooth: true
                     source: (modelData.thumbnail != "") ? modelData.thumbnail : ("image://colorimage/:/icons/icons/ui/" + typeStr + ".svg?" + palette.buttonText)
-                    sourceSize.height: parent.availableHeight - namefield.height
-                    sourceSize.width: parent.availableWidth
+                    sourceSize.height: pane.availableHeight - namefield.height
+                    sourceSize.width: pane.availableWidth
                 }
                 MatrixTextField {
                     id: namefield