From ccd4add3efa61c4425fa7b01b9a3224c1402315e Mon Sep 17 00:00:00 2001 From: Kostas Karmas Date: Tue, 11 Aug 2020 11:32:53 +0200 Subject: [PATCH] Apply different filtering per category when pressing Back Back now applies the same filters that are applied when pressing the tab buttons. CURA-7649 --- .../resources/qml/components/ToolboxBackColumn.qml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/plugins/Toolbox/resources/qml/components/ToolboxBackColumn.qml b/plugins/Toolbox/resources/qml/components/ToolboxBackColumn.qml index cbf48fc57f..5514e555eb 100644 --- a/plugins/Toolbox/resources/qml/components/ToolboxBackColumn.qml +++ b/plugins/Toolbox/resources/qml/components/ToolboxBackColumn.qml @@ -48,7 +48,15 @@ Item onClicked: { toolbox.viewPage = "overview" - toolbox.filterModelByProp("packages", "package_types", toolbox.viewCategory) + if (toolbox.viewCategory == "material") + { + toolbox.filterModelByProp("authors", "package_types", "material") + } + else if (toolbox.viewCategory == "plugin") + { + toolbox.filterModelByProp("packages", "type", "plugin") + } + } style: ButtonStyle {