Pop PrinterPage if printer (attrs) goes missing
This commit is contained in:
parent
1f947096f3
commit
be390c450c
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue