diff --git a/shell/contents/lockscreen/QuickActionButton.qml b/shell/contents/lockscreen/QuickActionButton.qml index 2b961dc3..f951ff2a 100644 --- a/shell/contents/lockscreen/QuickActionButton.qml +++ b/shell/contents/lockscreen/QuickActionButton.qml @@ -94,10 +94,7 @@ AbstractButton { } } - onReleased: { - if (!buttonHeld) { - return - } + function triggerButtonAction() { switch (buttonAction) { case ShellSettings.Settings.Flashlight: FlashlightUtil.toggleTorch(); @@ -116,6 +113,7 @@ AbstractButton { onTriggered: { haptics.buttonVibrate(); buttonHeld = true; + triggerButtonAction(); } }