mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
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:
parent
c7525719d5
commit
ccd4add3ef
1 changed files with 9 additions and 1 deletions
|
@ -48,7 +48,15 @@ Item
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
toolbox.viewPage = "overview"
|
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
|
style: ButtonStyle
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue