From d73c16976e2706920464f897a978253223f089bf Mon Sep 17 00:00:00 2001 From: olf Date: Wed, 23 Feb 2022 08:24:33 +0100 Subject: [PATCH] PatchmanagerPage: Reorder pulley menu entries (#272) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * PatchmanagerPage: Reorder pulley menu entries … "Settings" shall be below "About" and easier to reach, plus "Deactivate all Patches" the hardest to reach (i.e., topmost) * PatchManagerPage: Disable "Deactivate all Patches" … pulley menu entry. --- src/qml/PatchManagerPage.qml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/qml/PatchManagerPage.qml b/src/qml/PatchManagerPage.qml index 33f0d88b..c1434f8a 100644 --- a/src/qml/PatchManagerPage.qml +++ b/src/qml/PatchManagerPage.qml @@ -138,10 +138,16 @@ Page { PullDownMenu { busy: view.busy enabled: !busy + + /* + Disabled due to discussion at https://github.com/sailfishos-patches/patchmanager/pull/272#issuecomment-1047685536 + MenuItem { - text: qsTranslate("", "Settings") - onClicked: pageStack.push(Qt.resolvedUrl("SettingsPage.qml")) + text: qsTranslate("", "Deactivate all Patches") + onClicked: menuRemorse.execute( text, function() { PatchManager.call(PatchManager.unapplyAllPatches()) } ) + visible: PatchManager.loaded } + */ MenuItem { text: qsTranslate("", "About Patchmanager") @@ -149,9 +155,8 @@ Page { } MenuItem { - text: qsTranslate("", "Deactivate all Patches") - onClicked: menuRemorse.execute( text, function() { PatchManager.call(PatchManager.unapplyAllPatches()) } ) - visible: PatchManager.loaded + text: qsTranslate("", "Settings") + onClicked: pageStack.push(Qt.resolvedUrl("SettingsPage.qml")) } MenuItem {