Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Mobile
Commits
17f582a1
Commit
17f582a1
authored
Apr 07, 2022
by
Devin Lin
🎨
Browse files
lockscreen: Fix drawer not closing when notification button clicked
parent
57192b77
Pipeline
#160904
passed with stages
in 1 minute and 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
look-and-feel/contents/lockscreen/HeaderComponent.qml
View file @
17f582a1
...
...
@@ -27,6 +27,7 @@ Loader {
asynchronous
:
true
sourceComponent
:
Item
{
// top status bar
MobileShell.StatusBar
{
id
:
statusBar
...
...
@@ -42,16 +43,17 @@ Loader {
showSecondRow
:
false
showDropShadow
:
true
showTime
:
false
disableSystemTray
:
true
//
HACK:
prevent SIGABRT
disableSystemTray
:
true
// prevent SIGABRT
, since loading the system tray on the lockscreen leads to bad... things
}
// drag down gesture to open action drawer
MobileShell.ActionDrawerOpenSurface
{
id
:
swipeArea
actionDrawer
:
drawer
anchors.fill
:
statusBar
}
//
swipe-dow
n drawer component
//
actio
n drawer component
MobileShell.ActionDrawer
{
id
:
drawer
anchors.fill
:
parent
...
...
@@ -64,12 +66,15 @@ Loader {
property
bool
requestNotificationAction
:
false
// notification button clicked, requesting auth
onPermissionsRequested
:
{
requestNotificationAction
=
true
;
drawer
.
close
();
root
.
passwordRequested
();
}
}
// listen to authentication events
Connections
{
target
:
authenticator
function
onSucceeded
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment