mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-18 07:56:11 +08:00
Clear contents of net marketplace if window is closed
CURA-8556
This commit is contained in:
parent
a3c364d65a
commit
7bbc91b7a5
@ -18,6 +18,18 @@ Window
|
|||||||
width: minimumWidth
|
width: minimumWidth
|
||||||
height: minimumHeight
|
height: minimumHeight
|
||||||
|
|
||||||
|
onVisibleChanged:
|
||||||
|
{
|
||||||
|
// Set and unset the content. No need to keep things in memory if it's not visible.
|
||||||
|
if(visible)
|
||||||
|
{
|
||||||
|
content.source = "plugins.qml"
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
content.source = ""
|
||||||
|
}
|
||||||
|
}
|
||||||
title: "Marketplace" //Seen by Ultimaker as a brand name, so this doesn't get translated.
|
title: "Marketplace" //Seen by Ultimaker as a brand name, so this doesn't get translated.
|
||||||
modality: Qt.NonModal
|
modality: Qt.NonModal
|
||||||
|
|
||||||
@ -61,9 +73,9 @@ Window
|
|||||||
|
|
||||||
Loader //Page contents.
|
Loader //Page contents.
|
||||||
{
|
{
|
||||||
|
id: content
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: UM.Theme.getSize("default_margin").width
|
anchors.margins: UM.Theme.getSize("default_margin").width
|
||||||
|
|
||||||
source: "Plugins.qml"
|
source: "Plugins.qml"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user