Skip to content

Commit

Permalink
Pop PrinterPage if printer (attrs) goes missing
Browse files Browse the repository at this point in the history
  • Loading branch information
attah committed Jun 28, 2021
1 parent 1f94709 commit be390c4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions qml/pages/PrinterPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit be390c4

Please sign in to comment.