Apply different filtering per category when pressing Back

Back now applies the same filters that are applied when pressing the tab buttons.

CURA-7649
This commit is contained in:
Kostas Karmas 2020-08-11 11:32:53 +02:00
parent c7525719d5
commit ccd4add3ef

View file

@ -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
{