From 9cc0c3ddc51a583d892c7129e9a4848c33f22b2a Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Tue, 28 Dec 2021 20:26:34 -0700 Subject: [PATCH] kcms/autostart: close menu popup when clicking its parent button again If the button is checked when clicked, explicitly close the menu, just like other pop-up menu buttons and comboboxes do. --- kcms/autostart/package/contents/ui/main.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kcms/autostart/package/contents/ui/main.qml b/kcms/autostart/package/contents/ui/main.qml index d8f481939..2ff6cc880 100644 --- a/kcms/autostart/package/contents/ui/main.qml +++ b/kcms/autostart/package/contents/ui/main.qml @@ -152,7 +152,7 @@ KCM.ScrollViewKCM { checkable: true checked: menu.opened - onClicked: menu.open() + onClicked: menu.opened? menu.close() : menu.open() } Menu {