diff --git a/app/gui/AppView.qml b/app/gui/AppView.qml index 2d5d35a9..af546340 100644 --- a/app/gui/AppView.qml +++ b/app/gui/AppView.qml @@ -8,15 +8,15 @@ import ComputerManager 1.0 GridView { property int computerIndex property AppModel appModel : createModel() + property bool activated id: appGrid focus: true activeFocusOnTab: true - anchors.fill: parent - anchors.leftMargin: (parent.width % (cellWidth + anchors.rightMargin)) / 2 - anchors.topMargin: 20 - anchors.rightMargin: 5 - anchors.bottomMargin: 5 + leftMargin: (parent.width % (cellWidth + rightMargin)) / 2 + topMargin: 20 + rightMargin: 5 + bottomMargin: 5 cellWidth: 225; cellHeight: 385; function computerLost() @@ -34,10 +34,12 @@ GridView { StackView.onActivated: { appModel.computerLost.connect(computerLost) + activated = true } StackView.onDeactivating: { appModel.computerLost.disconnect(computerLost) + activated = false } function createModel() @@ -237,6 +239,12 @@ GridView { } ScrollBar.vertical: ScrollBar { + // Manually hide the scrollbar to prevent it from being drawn on top + // of the StreamSegue during the transition. It can sometimes get stuck + // there since we're not consistently pumping the event loop while + // starting the stream. + visible: activated + parent: appGrid.parent anchors { top: appGrid.top diff --git a/app/gui/CliQuitStreamSegue.qml b/app/gui/CliQuitStreamSegue.qml index b2663d19..8c229736 100644 --- a/app/gui/CliQuitStreamSegue.qml +++ b/app/gui/CliQuitStreamSegue.qml @@ -6,8 +6,6 @@ import ComputerManager 1.0 import Session 1.0 Item { - anchors.fill: parent - function onSearchingComputer() { stageLabel.text = "Establishing connection to PC..." } diff --git a/app/gui/PcView.qml b/app/gui/PcView.qml index 9c469a2a..eb2a6638 100644 --- a/app/gui/PcView.qml +++ b/app/gui/PcView.qml @@ -14,11 +14,10 @@ GridView { id: pcGrid focus: true activeFocusOnTab: true - anchors.fill: parent - anchors.leftMargin: (parent.width % (cellWidth + anchors.rightMargin)) / 2 - anchors.topMargin: 20 - anchors.rightMargin: 5 - anchors.bottomMargin: 5 + leftMargin: (parent.width % (cellWidth + rightMargin)) / 2 + topMargin: 20 + rightMargin: 5 + bottomMargin: 5 cellWidth: 350; cellHeight: 350; objectName: "Computers" diff --git a/app/gui/QuitSegue.qml b/app/gui/QuitSegue.qml index aa87df44..44e1814e 100644 --- a/app/gui/QuitSegue.qml +++ b/app/gui/QuitSegue.qml @@ -12,8 +12,6 @@ Item { property string stageText : "Quitting " + appName + "..." - anchors.fill: parent - function quitAppCompleted(error) { // Display a failed dialog if we got an error diff --git a/app/gui/SettingsView.qml b/app/gui/SettingsView.qml index 023c8d2a..73275eca 100644 --- a/app/gui/SettingsView.qml +++ b/app/gui/SettingsView.qml @@ -9,7 +9,6 @@ import SystemProperties 1.0 Flickable { id: settingsPage objectName: "Settings" - anchors.fill: parent contentWidth: settingsColumn1.width > settingsColumn2.width ? settingsColumn1.width : settingsColumn2.width contentHeight: settingsColumn1.height > settingsColumn2.height ? settingsColumn1.height : settingsColumn2.height diff --git a/app/gui/StreamSegue.qml b/app/gui/StreamSegue.qml index 84a39441..220b564f 100644 --- a/app/gui/StreamSegue.qml +++ b/app/gui/StreamSegue.qml @@ -13,8 +13,6 @@ Item { property string stageText : "Starting " + appName + "..." property bool quitAfter : false - anchors.fill: parent - function stageStarting(stage) { // Update the spinner text