diff options
author | Ian Paschal <ian.paschal@gmail.com> | 2018-07-04 12:36:56 +0300 |
---|---|---|
committer | Ian Paschal <ian.paschal@gmail.com> | 2018-07-04 12:36:56 +0300 |
commit | 7d30cee205e60a54aad86f0aeb7289a0b3096a82 (patch) | |
tree | b37c31e09b4753a42479226ada8566021372b658 /plugins | |
parent | 715eda4f5917018553bf6f0d5b4b62e94d5f8a20 (diff) |
Revert "Add dummy details for when there is no selection"
This reverts commit 2e3528d9b25b7b3a76cdbb145de955b5d1826bd2.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Toolbox/resources/qml/ToolboxAuthorPage.qml | 11 | ||||
-rw-r--r-- | plugins/Toolbox/resources/qml/ToolboxDetailPage.qml | 14 |
2 files changed, 2 insertions, 23 deletions
diff --git a/plugins/Toolbox/resources/qml/ToolboxAuthorPage.qml b/plugins/Toolbox/resources/qml/ToolboxAuthorPage.qml index d2f75936d1..04b055ed66 100644 --- a/plugins/Toolbox/resources/qml/ToolboxAuthorPage.qml +++ b/plugins/Toolbox/resources/qml/ToolboxAuthorPage.qml @@ -9,17 +9,8 @@ import UM 1.1 as UM Item { id: page - property var details: base.selection || dummy_details + property var details: base.selection || {} anchors.fill: parent - - property var dummy_details: new Object({ - name: "", - description: "", - email: "", - website: "", - icon_url: "" - }) - ToolboxBackColumn { id: sidebar diff --git a/plugins/Toolbox/resources/qml/ToolboxDetailPage.qml b/plugins/Toolbox/resources/qml/ToolboxDetailPage.qml index f7c329a67b..4c6c8c6ba4 100644 --- a/plugins/Toolbox/resources/qml/ToolboxDetailPage.qml +++ b/plugins/Toolbox/resources/qml/ToolboxDetailPage.qml @@ -9,21 +9,9 @@ import UM 1.1 as UM Item { id: page - property var details: base.selection || dummy_details + property var details: base.selection 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 |