diff --git a/discover/qml/UpdatesPage.qml b/discover/qml/UpdatesPage.qml --- a/discover/qml/UpdatesPage.qml +++ b/discover/qml/UpdatesPage.qml @@ -60,13 +60,14 @@ readonly property int unselected: (updateModel.totalUpdatesCount - updateModel.toUpdateCount) readonly property QtObject currentAction: resourcesUpdatesModel.isProgressing ? cancelUpdateAction : updateAction - actions.main: applicationWindow().wideScreen ? null : currentAction + actions.main: currentAction header: QQC2.ToolBar { visible: (updateModel.totalUpdatesCount > 0 && resourcesUpdatesModel.isProgressing) || updateModel.hasUpdates RowLayout { - anchors.fill: parent + anchors.horizontalCenter: parent.horizontalCenter + anchors.verticalCenter: parent.verticalCenter LabelBackground { Layout.leftMargin: Kirigami.Units.gridUnit text: updateModel.toUpdateCount + " (" + updateModel.updateSize+")" @@ -83,18 +84,6 @@ text: i18n("updates not selected") visible: unselectedItem.visible } - - Item { - Layout.fillWidth: true - } - - Button { - Layout.minimumWidth: Kirigami.Units.gridUnit * 6 - Layout.rightMargin: Kirigami.Units.gridUnit - text: page.currentAction.text - visible: !page.actions.main - onClicked: page.currentAction.trigger() - } } }