Skip to content

Commit

Permalink
InstalledAppsPage.qml: move search action to the context menu
Browse files Browse the repository at this point in the history
Refers #48: make the behavior of the installed app delegate more clear
for users.
  • Loading branch information
mentaljam committed May 12, 2018
1 parent 2667120 commit c48da77
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 8 additions & 2 deletions harbour-storeman/qml/pages/InstalledAppsPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,17 @@ Page {
delegate: ListItem {
id: item
contentHeight: Theme.itemSizeExtraLarge
onClicked: pageStack.push(Qt.resolvedUrl("SearchPage.qml"),
{ initialSearch: packageName })
onClicked: showMenu()

menu: ContextMenu {

MenuItem {
//% "Search on OpenRepos.net"
text: qsTrId("orn-search-on-openrepos")
onClicked: pageStack.push(Qt.resolvedUrl("SearchPage.qml"),
{ initialSearch: packageName })
}

MenuItem {
visible: updateAvailable
enabled: networkManager.online
Expand Down
4 changes: 4 additions & 0 deletions harbour-storeman/translations/harbour-storeman.ts
Original file line number Diff line number Diff line change
Expand Up @@ -950,5 +950,9 @@
<source>All repositories were removed</source>
<translation>All repositories were removed</translation>
</message>
<message id="orn-search-on-openrepos">
<source>Search on OpenRepos.net</source>
<translation>Search on OpenRepos.net</translation>
</message>
</context>
</TS>

0 comments on commit c48da77

Please sign in to comment.