diff --git a/discover/qml/DiscoverWindow.qml b/discover/qml/DiscoverWindow.qml --- a/discover/qml/DiscoverWindow.qml +++ b/discover/qml/DiscoverWindow.qml @@ -89,6 +89,7 @@ id: refreshAction readonly property QtObject action: ResourcesModel.updateAction text: action.text + icon.name: "view-refresh" onTriggered: action.trigger() enabled: action.enabled tooltip: shortcut diff --git a/discover/qml/UpdatesPage.qml b/discover/qml/UpdatesPage.qml --- a/discover/qml/UpdatesPage.qml +++ b/discover/qml/UpdatesPage.qml @@ -60,7 +60,7 @@ 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 @@ -83,18 +83,9 @@ 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() - } } }