on xenial help sign in
Manage apps on edge (ish) (#181)

* Open OpenStore detail page on long-press, fixes https://github.com/ubports/ubuntu-touch/issues/1199 (poorly). We should later implement the popup from the launcher and allow app management directly.

commit3f2de385e5d9056ae93f0ecee3f481567a08e0dc authorJan Sprinz <NeoTheThird@users.noreply.github.com> dateMon 23 Sep 2019, 19:31 (7 years ago) parent652a3c2
1 file changed+6
qml/Launcher/Drawer.qml+6
qml/Launcher/Drawer.qml+6
@@ -293,6 +293,12 @@ FocusScope {
293293 readonly property bool focused: index === GridView.view.currentIndex && GridView.view.activeFocus
294294
295295 onClicked: root.applicationSelected(model.appId)
296+ onPressAndHold: {
297+ if (model.appId.includes(".")) { // Open OpenStore page if app is a click
298+ var splitAppId = model.appId.split("_");
299+ Qt.openUrlExternally("https://open-store.io/app/" + model.appId.replace("_" + splitAppId[splitAppId.length-1],"") + "/");
300+ }
301+ }
296302 z: loader.active ? 1 : 0
297303
298304 Column {