Commit bd4c1ac7 authored by Nate Graham's avatar Nate Graham Committed by Aleix Pol Gonzalez
Browse files

Reverse position of Refresh and Update actions in desktop view

People seem to feel that the Update action should be the right-most one
in desktop view. This commit accomplishes that, without changing the
ordering in mobile/narrow view, which would inappropriately cause the
Refresh action to be the center one in the floating action button.

BUG: 422630
FIXED-IN: 5.21
parent 42cef8ad
......@@ -371,8 +371,11 @@ DiscoverPage
State {
name: "has-updates"
PropertyChanges { target: page; title: i18nc("@info", "Updates") }
PropertyChanges { target: page.actions; main: updateAction }
PropertyChanges { target: page.actions; left: refreshAction }
// On mobile, we want "Update" to be the primary action so it's in
// the center, but on desktop this feels a bit awkward and it would
// be better to have "Update" be the right-most action
PropertyChanges { target: page.actions; main: applicationWindow().wideScreen ? refreshAction : updateAction}
PropertyChanges { target: page.actions; left: applicationWindow().wideScreen ? updateAction : refreshAction}
State {
name: "reboot"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment