Hide the toolbar when the StreamSegue page is visible
This commit is contained in:
parent
e8e9e17e63
commit
86f843464c
2 changed files with 8 additions and 0 deletions
|
|
@ -52,6 +52,9 @@ Item {
|
||||||
|
|
||||||
onVisibleChanged: {
|
onVisibleChanged: {
|
||||||
if (visible) {
|
if (visible) {
|
||||||
|
// Hide the toolbar before we start loading
|
||||||
|
toolBar.visible = false
|
||||||
|
|
||||||
// Hook up our signals
|
// Hook up our signals
|
||||||
session.stageStarting.connect(stageStarting)
|
session.stageStarting.connect(stageStarting)
|
||||||
session.stageFailed.connect(stageFailed)
|
session.stageFailed.connect(stageFailed)
|
||||||
|
|
@ -68,6 +71,10 @@ Item {
|
||||||
// Exit this view
|
// Exit this view
|
||||||
stackView.pop()
|
stackView.pop()
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
// Show the toolbar again when we become hidden
|
||||||
|
toolBar.visible = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@ ApplicationWindow {
|
||||||
}
|
}
|
||||||
|
|
||||||
header: ToolBar {
|
header: ToolBar {
|
||||||
|
id: toolBar
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
spacing: 20
|
spacing: 20
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue