Pop PrinterPage if printer (attrs) goes missing

This commit is contained in:
Anton Thomasson 2021-06-28 20:31:42 +02:00
parent 1f947096f3
commit be390c450c

View file

@ -24,6 +24,15 @@ Page {
}
}
Connections {
target: printer
onAttrsChanged: {
if(Object.keys(printer.attrs).length === 0) {
pageStack.pop()
}
}
}
// To enable PullDownMenu, place our content in a SilicaFlickable
SilicaFlickable {
anchors.fill: parent