Skip to content

Commit

Permalink
[qml/pages/PackagePage.qml] Move menu item chum-launch one up
Browse files Browse the repository at this point in the history
Addresses #290 (comment)
  • Loading branch information
Olf0 authored Jun 2, 2024
1 parent ffa557d commit f2a34e7
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions qml/pages/PackagePage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,6 @@ Page {
onClicked: Qt.openUrlExternally(pkg.urlForum)
visible: pkg.urlForum
}
MenuItem {
enabled: !Chum.busy
text: pkg.installed
//% "Update"
? qsTrId("chum-update")
//% "Install"
: qsTrId("chum-install")
visible: !pkg.installed || pkg.updateAvailable
onClicked: pkg.installed
? Chum.updatePackage(pkg.id)
: Chum.installPackage(pkg.id)
}
MenuItem {
//% "Start application"
text: qsTrId("chum-launch")
Expand All @@ -68,6 +56,18 @@ Page {
}
Lipstick.LauncherItem{ id: launcher }
}
MenuItem {
enabled: !Chum.busy
text: pkg.installed
//% "Update"
? qsTrId("chum-update")
//% "Install"
: qsTrId("chum-install")
visible: !pkg.installed || pkg.updateAvailable
onClicked: pkg.installed
? Chum.updatePackage(pkg.id)
: Chum.installPackage(pkg.id)
}
}

RemorsePopup { id: remorse }
Expand Down

0 comments on commit f2a34e7

Please sign in to comment.