mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 13:17:51 -06:00
Add dummy details for when there is no selection
CURA-5521
This commit is contained in:
parent
9fa8498162
commit
2e3528d9b2
2 changed files with 23 additions and 2 deletions
|
@ -9,8 +9,17 @@ import UM 1.1 as UM
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
id: page
|
id: page
|
||||||
property var details: base.selection || {}
|
property var details: base.selection || dummy_details
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
|
property var dummy_details: new Object({
|
||||||
|
name: "",
|
||||||
|
description: "",
|
||||||
|
email: "",
|
||||||
|
website: "",
|
||||||
|
icon_url: ""
|
||||||
|
})
|
||||||
|
|
||||||
ToolboxBackColumn
|
ToolboxBackColumn
|
||||||
{
|
{
|
||||||
id: sidebar
|
id: sidebar
|
||||||
|
|
|
@ -9,9 +9,21 @@ import UM 1.1 as UM
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
id: page
|
id: page
|
||||||
property var details: base.selection
|
property var details: base.selection || dummy_details
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
||||||
|
property var dummy_details: new Object({
|
||||||
|
name: '',
|
||||||
|
version: '',
|
||||||
|
last_updated: '',
|
||||||
|
author_email: '',
|
||||||
|
author_name: '',
|
||||||
|
website: '',
|
||||||
|
icon_url: '',
|
||||||
|
download_count: ''
|
||||||
|
})
|
||||||
|
|
||||||
ToolboxBackColumn
|
ToolboxBackColumn
|
||||||
{
|
{
|
||||||
id: sidebar
|
id: sidebar
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue