From 0230f0afcee737f79a1ea86a302d3339630eb9d2 Mon Sep 17 00:00:00 2001 From: Peter G Date: Fri, 17 Sep 2021 11:47:50 +0200 Subject: [PATCH] [ui] add Remorse Popup to Unapply All menu action See Issue #20 https://github.com/sailfishos-patches/patchmanager/issues/20 --- src/qml/PatchManagerPage.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qml/PatchManagerPage.qml b/src/qml/PatchManagerPage.qml index ffe66f551..92088f5c7 100644 --- a/src/qml/PatchManagerPage.qml +++ b/src/qml/PatchManagerPage.qml @@ -145,7 +145,7 @@ Page { MenuItem { text: qsTranslate("", "Unapply all patches") - onClicked: PatchManager.call(PatchManager.unapplyAllPatches()) + onClicked: menuRemorse.execute( text, function() { PatchManager.call(PatchManager.unapplyAllPatches()) } ) visible: PatchManager.loaded } @@ -509,7 +509,7 @@ Page { enabled: view.count == 0 text: qsTranslate("", "No patches available") } - + RemorsePopup { id: menuRemorse } VerticalScrollDecorator {} }