From 86f843464cb98eebf8868a578c6e9fdf999a5dd6 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 9 Jul 2018 00:12:27 -0700 Subject: [PATCH] Hide the toolbar when the StreamSegue page is visible --- app/gui/StreamSegue.qml | 7 +++++++ app/gui/main.qml | 1 + 2 files changed, 8 insertions(+) diff --git a/app/gui/StreamSegue.qml b/app/gui/StreamSegue.qml index e5c51c0a..f6ce90ec 100644 --- a/app/gui/StreamSegue.qml +++ b/app/gui/StreamSegue.qml @@ -52,6 +52,9 @@ Item { onVisibleChanged: { if (visible) { + // Hide the toolbar before we start loading + toolBar.visible = false + // Hook up our signals session.stageStarting.connect(stageStarting) session.stageFailed.connect(stageFailed) @@ -68,6 +71,10 @@ Item { // Exit this view stackView.pop() } + else { + // Show the toolbar again when we become hidden + toolBar.visible = true + } } Row { diff --git a/app/gui/main.qml b/app/gui/main.qml index dc0b353e..f6260347 100644 --- a/app/gui/main.qml +++ b/app/gui/main.qml @@ -36,6 +36,7 @@ ApplicationWindow { } header: ToolBar { + id: toolBar RowLayout { spacing: 20