mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 03:29:00 +08:00
Add dummy details for when there is no selection
CURA-5521
This commit is contained in:
parent
9fa8498162
commit
2e3528d9b2
@ -9,8 +9,17 @@ import UM 1.1 as UM
|
||||
Item
|
||||
{
|
||||
id: page
|
||||
property var details: base.selection || {}
|
||||
property var details: base.selection || dummy_details
|
||||
anchors.fill: parent
|
||||
|
||||
property var dummy_details: new Object({
|
||||
name: "",
|
||||
description: "",
|
||||
email: "",
|
||||
website: "",
|
||||
icon_url: ""
|
||||
})
|
||||
|
||||
ToolboxBackColumn
|
||||
{
|
||||
id: sidebar
|
||||
|
@ -9,9 +9,21 @@ import UM 1.1 as UM
|
||||
Item
|
||||
{
|
||||
id: page
|
||||
property var details: base.selection
|
||||
property var details: base.selection || dummy_details
|
||||
anchors.fill: parent
|
||||
width: parent.width
|
||||
|
||||
property var dummy_details: new Object({
|
||||
name: '',
|
||||
version: '',
|
||||
last_updated: '',
|
||||
author_email: '',
|
||||
author_name: '',
|
||||
website: '',
|
||||
icon_url: '',
|
||||
download_count: ''
|
||||
})
|
||||
|
||||
ToolboxBackColumn
|
||||
{
|
||||
id: sidebar
|
||||
|
Loading…
x
Reference in New Issue
Block a user