mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 04:28:49 +03:00
Fix some undefined variables in the UploadBox
This commit is contained in:
parent
2c53789d97
commit
686cade0ab
1 changed files with 3 additions and 2 deletions
|
@ -36,6 +36,7 @@ Page {
|
||||||
|
|
||||||
}
|
}
|
||||||
delegate: Pane {
|
delegate: Pane {
|
||||||
|
id: pane
|
||||||
height: uploadPopup.availableHeight - buttons.height - (scr.visible ? scr.height : 0)
|
height: uploadPopup.availableHeight - buttons.height - (scr.visible ? scr.height : 0)
|
||||||
padding: Nheko.paddingSmall
|
padding: Nheko.paddingSmall
|
||||||
width: uploadPopup.availableHeight - buttons.height
|
width: uploadPopup.availableHeight - buttons.height
|
||||||
|
@ -63,8 +64,8 @@ Page {
|
||||||
mipmap: true
|
mipmap: true
|
||||||
smooth: true
|
smooth: true
|
||||||
source: (modelData.thumbnail != "") ? modelData.thumbnail : ("image://colorimage/:/icons/icons/ui/" + typeStr + ".svg?" + palette.buttonText)
|
source: (modelData.thumbnail != "") ? modelData.thumbnail : ("image://colorimage/:/icons/icons/ui/" + typeStr + ".svg?" + palette.buttonText)
|
||||||
sourceSize.height: parent.availableHeight - namefield.height
|
sourceSize.height: pane.availableHeight - namefield.height
|
||||||
sourceSize.width: parent.availableWidth
|
sourceSize.width: pane.availableWidth
|
||||||
}
|
}
|
||||||
MatrixTextField {
|
MatrixTextField {
|
||||||
id: namefield
|
id: namefield
|
||||||
|
|
Loading…
Reference in a new issue